summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-01-11 13:37:38 +0000
committerErmal Luçi <eri@pfsense.org>2010-01-11 13:37:38 +0000
commitbbb7e18d87462f9588f8ace48800b8e5d12a03a1 (patch)
tree749f7f6f779e7d464a1953bc26d753c96a6ed9c6 /usr/local
parentfd7ff4051baf62911ccc10904f0cd22c8fa96927 (diff)
downloadpfsense-bbb7e18d87462f9588f8ace48800b8e5d12a03a1.zip
pfsense-bbb7e18d87462f9588f8ace48800b8e5d12a03a1.tar.gz
Feedback #225. If the type of vip changes remove the old type before adding the new one.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php5
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();
OpenPOWER on IntegriCloud