diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-09 22:15:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-09 22:15:19 +0000 |
commit | 4335b4af987c79aa3b356bd53d3223810d344b1b (patch) | |
tree | 11348537ea8c5bd4283c1f3b8f450e078dc54023 /usr/local/www/firewall_nat_out.php | |
parent | 2593d87e15ba903c97045b38b58b9d5a2a5526a0 (diff) | |
download | pfsense-4335b4af987c79aa3b356bd53d3223810d344b1b.zip pfsense-4335b4af987c79aa3b356bd53d3223810d344b1b.tar.gz |
Do not create rules every time user saves settings.
Ticket #858
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php index 797c089..a7826f1 100755 --- a/usr/local/www/firewall_nat_out.php +++ b/usr/local/www/firewall_nat_out.php @@ -69,7 +69,7 @@ if ($_POST) { if (isset($_POST['save'])) { - + $was_enabled = $config['nat']['advancedoutbound']['enable']; /* mutually exclusive settings - if user wants advanced NAT, we don't help with IPSec */ if ($_POST['ipsecpassthru'] == true) { $config['nat']['ipsecpassthru']['enable'] = true; @@ -83,7 +83,7 @@ if (isset($_POST['save'])) { $config['nat']['ipsecpassthru']['enable'] = false; if ($_POST['advancedoutbound'] == false) $config['nat']['advancedoutbound']['enable'] = false; - if($config['nat']['advancedoutbound']['enable'] and $_POST['advancedoutbound'] <> "") { + if($was_enabled and $_POST['advancedoutbound'] <> "") { /* * user has enabled advanced outbound nat -- lets automatically create entries * for all of the interfaces to make life easier on the pip-o-chap |