diff options
author | Ermal <eri@pfsense.org> | 2013-12-18 21:59:19 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-18 21:59:19 +0000 |
commit | 6a3b460168a023b3cf1b866e0f57f2e3dbbb7908 (patch) | |
tree | 5a45e8362303a12f3a5971b3b3368d57c5093be3 /etc/inc/interfaces.inc | |
parent | e183e1cee78c3b88b8c276437f9c673fcb2368e9 (diff) | |
download | pfsense-6a3b460168a023b3cf1b866e0f57f2e3dbbb7908.zip pfsense-6a3b460168a023b3cf1b866e0f57f2e3dbbb7908.tar.gz |
Correct removing the ip addresses from an interface!
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
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); } } |