summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-09 11:03:58 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-09 11:03:58 +0000
commited65eb04ee1c296fa7abba90c98968d3b80f72f0 (patch)
tree3f721eb3bbfec301f52c431f8c518c93888f4074 /usr/local/www
parent429bf8de23644b5243fc075bbebefa389969bff8 (diff)
downloadpfsense-ed65eb04ee1c296fa7abba90c98968d3b80f72f0.zip
pfsense-ed65eb04ee1c296fa7abba90c98968d3b80f72f0.tar.gz
Ticket #152. Hoepfully fix creation of empty vip entries in the config when deleting them. Probably more checks need to be done by consumers.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index a88a217..6cd8879 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -112,6 +112,8 @@ if ($_GET['act'] == "del") {
interface_vip_bring_down($a_vip[$_GET['id']]);
unset($a_vip[$_GET['id']]);
}
+ if (count($config['virtualip']['vip']) == 0)
+ unset($config['virtualip']['vip']);
write_config();
mark_subsystem_dirty('vip');
header("Location: firewall_virtual_ip.php");
OpenPOWER on IntegriCloud