Woops, only reboot on carp entries.

This commit is contained in:
Scott Ullrich 2007-05-21 19:22:09 +00:00
parent 551b893e94
commit 2de844ec0d

View File

@ -53,8 +53,8 @@ if ($_GET['act'] == "del") {
if($rule['external-address'] <> "") {
if ($rule['external-address'] == $a_vip[$_GET['id']]['ipaddr']) {
$input_errors[] = "This entry cannot be deleted because it is still referenced by at least one NAT mapping.";
unlink("/tmp/carp_reboot_needed");
if($rule['mode'] == "carp")
unlink("/tmp/carp_reboot_needed");
break;
}
}