summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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