summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-18 21:59:19 +0000
committerErmal <eri@pfsense.org>2013-12-18 21:59:19 +0000
commit6a3b460168a023b3cf1b866e0f57f2e3dbbb7908 (patch)
tree5a45e8362303a12f3a5971b3b3368d57c5093be3
parente183e1cee78c3b88b8c276437f9c673fcb2368e9 (diff)
downloadpfsense-6a3b460168a023b3cf1b866e0f57f2e3dbbb7908.zip
pfsense-6a3b460168a023b3cf1b866e0f57f2e3dbbb7908.tar.gz
Correct removing the ip addresses from an interface!
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 6849273..9f735e1 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2826,9 +2826,9 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
if (is_array($tmpifaces)) {
foreach ($tmpifaces as $tmpiface) {
if (strstr($iface, ":"))
- mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 {$iface} delete");
+ mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 {$tmpiface} delete");
else
- mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet {$iface} delete");
+ pfSense_interface_deladdress($realif, $tmpiface);
}
}
OpenPOWER on IntegriCloud