summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/interfaces.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 284dbff..2102121 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2876,8 +2876,14 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
foreach ($tmpifaces as $tmpiface) {
if (strstr($iface, ":"))
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 {$tmpiface} delete");
- else
- pfSense_interface_deladdress($realif, $tmpiface);
+ else {
+ if (is_subnetv4($tmpiface)) {
+ $tmpip = explode('/', $tmpiface);
+ $tmpip = $tmpip[0];
+ } else
+ $tmpip = $tmpiface;
+ pfSense_interface_deladdress($realif, $tmpip);
+ }
}
}
OpenPOWER on IntegriCloud