Ticket #152. Hoepfully fix creation of empty vip entries in the config when deleting them. Probably more checks need to be done by consumers.

This commit is contained in:
Ermal Lui 2010-02-09 11:03:58 +00:00
parent 429bf8de23
commit ed65eb04ee

View File

@ -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");