summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-12-08 15:44:22 +0000
committerErmal Luçi <eri@pfsense.org>2009-12-08 15:44:22 +0000
commit989e5d62da2f7f6dad2bb55d20d2558cfb3fa34a (patch)
tree02779b21b3c135a928742b48a5e72cce1de570a1 /usr
parent1ddb870bc83df15bf2322c9b28d196106e518101 (diff)
downloadpfsense-989e5d62da2f7f6dad2bb55d20d2558cfb3fa34a.zip
pfsense-989e5d62da2f7f6dad2bb55d20d2558cfb3fa34a.tar.gz
Correctly unset rules when switching disabling AON.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_nat_out.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 55a8469..1e1293e 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -79,7 +79,7 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") {
case "ipsecpassthru":
$config['nat']['ipsecpassthru']['enable'] = true;
unset($config['nat']['advancedoutbound']['enable']);
- if(count($config['nat']['advancedoutbound']['rule']) == 0)
+ if(count($config['nat']['advancedoutbound']['rule']) > 0)
unset($config['nat']['advancedoutbound']['rule']);
break;
case "advancedoutboundnat":
OpenPOWER on IntegriCloud