summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.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_edit.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_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index 6503047..e670a5d 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -143,6 +143,9 @@ if ($_POST) {
$input_errors[] = "Sorry, we could not locate an interface with a matching subnet for {$cannot_find}. Please add an IP alias in this subnet on this interface.";
} else if ($parent_sn != $_POST['subnet_bits'])
$input_errors[] = "Subnet bits needs to be the same as the parent interface.";
+
+ if ($a_vip[$id]['vhid'] != $_POST['vhid'])
+ interface_vip_bring_down($a_vip[$id]);
}
if (!$input_errors) {
OpenPOWER on IntegriCloud