summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-05-18 19:43:25 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-05-18 19:43:25 +0000
commit1e28f92d7e934480b46f5601d7674c874540baff (patch)
tree8ddff4ec2ca5f4b473e216b749351cd13dbc4034 /usr/local/www/firewall_nat_out.php
parent8cb954893577ed40fa033f5a733b5158e4c46f7a (diff)
downloadpfsense-1e28f92d7e934480b46f5601d7674c874540baff.zip
pfsense-1e28f92d7e934480b46f5601d7674c874540baff.tar.gz
Do not unset advanced outbound nat settings if user deletes all rules and saves. This prevents the operator from having a nat-free environment.
Reported-by: Andrew Thompson
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-rwxr-xr-xusr/local/www/firewall_nat_out.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 4320a9d..55d273d 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -120,9 +120,6 @@ if (isset($_POST['del_x'])) {
foreach ($_POST['rule'] as $rulei) {
unset($a_out[$rulei]);
}
- if (count($a_out) == 0)
- unset($config['nat']['advancedoutbound']);
-
write_config();
touch($d_natconfdirty_path);
header("Location: firewall_nat_out.php");
OpenPOWER on IntegriCloud