mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
429bf8de23
commit
ed65eb04ee
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user