summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-10-05 20:07:52 +0000
committerErmal Luçi <eri@pfsense.org>2009-10-08 21:52:51 +0000
commit0ee17602a5e26f88b8ebef47d9743cdc1702735e (patch)
tree29ba188897d18b1596669b3780b5f44efe37794a /usr/local/www/firewall_virtual_ip.php
parent65e2c06c7609712a39ce6bab8501d65766c462a9 (diff)
downloadpfsense-0ee17602a5e26f88b8ebef47d9743cdc1702735e.zip
pfsense-0ee17602a5e26f88b8ebef47d9743cdc1702735e.tar.gz
Correctly handle the change of vhid on an interface.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index dd4dd2c..96d5047 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -101,8 +101,7 @@ if ($_GET['act'] == "del") {
}
if (!$input_errors) {
- if ($a_vip[$_GET['id']]['type'] == "ipalias")
- mwexec("/sbin/ifconfig " . get_real_interface($a_vip[$_GET['id']]['interface']) . " delete {$a_vip[$_GET['id']]['subnet']}");
+ interface_vip_bring_down($a_vip[$_GET['id']]);
unset($a_vip[$_GET['id']]);
write_config();
mark_subsystem_dirty('vip');
OpenPOWER on IntegriCloud