diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-12-08 15:45:16 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-12-08 15:45:16 +0000 |
commit | 1cf931f6d5ec055a614a6129f538c130018055f4 (patch) | |
tree | ce5b8f94b2d2a48c6af20e9832d7158317c3b11b /usr/local | |
parent | fb3590e537c5f4dfb9dbc0f912dc5188504872a2 (diff) | |
download | pfsense-1cf931f6d5ec055a614a6129f538c130018055f4.zip pfsense-1cf931f6d5ec055a614a6129f538c130018055f4.tar.gz |
Correctly unset rules when switching disabling AON.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 2 |
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": |