summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
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 1e1293e..55a8469 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