summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/etc/rc.newwanip2
-rwxr-xr-xsrc/etc/rc.newwanipv62
-rw-r--r--src/usr/local/www/interfaces.php3
3 files changed, 3 insertions, 4 deletions
diff --git a/src/etc/rc.newwanip b/src/etc/rc.newwanip
index 01d211c..ea44b81 100755
--- a/src/etc/rc.newwanip
+++ b/src/etc/rc.newwanip
@@ -47,8 +47,6 @@ function restart_packages() {
global $oldip, $curwanip, $g;
/* restart packages */
- system_ntp_configure(false);
- mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh", true);
log_error("{$g['product_name']} package system has detected an IP change or dynamic WAN reconnection - $oldip -> $curwanip - Restarting packages.");
send_event("service reload packages");
}
diff --git a/src/etc/rc.newwanipv6 b/src/etc/rc.newwanipv6
index 1030d96..088600b 100755
--- a/src/etc/rc.newwanipv6
+++ b/src/etc/rc.newwanipv6
@@ -48,8 +48,6 @@ function restart_packages() {
global $oldipv6, $curwanipv6, $g;
/* restart packages */
- system_ntp_configure(false);
- mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh", true);
log_error("{$g['product_name']} package system has detected an IP change or dynamic WAN reconnection - $oldipv6 -> $curwanipv6 - Restarting packages.");
send_event("service reload packages");
}
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php
index 4f849f0..43cc88d 100644
--- a/src/usr/local/www/interfaces.php
+++ b/src/usr/local/www/interfaces.php
@@ -742,6 +742,9 @@ if ($_POST['apply']) {
if (!is_ipaddrv6($_POST['ipaddrv6'])) {
$input_errors[] = gettext("A valid IPv6 address must be specified.");
} else {
+ if (ip_in_subnet($_POST['ipaddrv6'], "fe80::/10")) {
+ $input_errors[] = gettext("IPv6 link local addresses cannot be configured as an interface IP.");
+ }
$where_ipaddr_configured = where_is_ipaddr_configured($_POST['ipaddrv6'], $if, true, true, $_POST['subnetv6']);
if (count($where_ipaddr_configured)) {
$subnet_conflict_text = sprintf(gettext("IPv6 address %s is being used by or overlaps with:"), $_POST['ipaddrv6'] . "/" . $_POST['subnetv6']);
OpenPOWER on IntegriCloud