summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-21 19:22:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-21 19:22:09 +0000
commit2de844ec0d488ab5e3fca7dbe0320796a684ee46 (patch)
tree4b7e7e91be7e5ab6ad982a60af801ab41623739f /usr
parent551b893e947e4396616a1a1e4b22c9be057126f6 (diff)
downloadpfsense-2de844ec0d488ab5e3fca7dbe0320796a684ee46.zip
pfsense-2de844ec0d488ab5e3fca7dbe0320796a684ee46.tar.gz
Woops, only reboot on carp entries.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index 7f59510..b58efc0 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -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;
}
}
OpenPOWER on IntegriCloud