diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-11 13:37:38 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-11 13:37:38 +0000 |
commit | bbb7e18d87462f9588f8ace48800b8e5d12a03a1 (patch) | |
tree | 749f7f6f779e7d464a1953bc26d753c96a6ed9c6 | |
parent | fd7ff4051baf62911ccc10904f0cd22c8fa96927 (diff) | |
download | pfsense-bbb7e18d87462f9588f8ace48800b8e5d12a03a1.zip pfsense-bbb7e18d87462f9588f8ace48800b8e5d12a03a1.tar.gz |
Feedback #225. If the type of vip changes remove the old type before adding the new one.
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index 260e557..bec5e10 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -163,6 +163,11 @@ if ($_POST) { interface_vip_bring_down($a_vip[$id]); } + if (isset($id) && ($a_vip[$id])) { + if ($a_vip[$id]['mode'] != $_POST['mode']) + interface_bring_down($a_vip[$id]); + } + if (!$input_errors) { $vipent = array(); |