diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2005-09-19 21:07:43 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2005-09-19 21:07:43 +0000 |
commit | f8f2a6e425dd3ab0c3ddee0fc74c7c487d10f384 (patch) | |
tree | 123b9e92c3e997db82dcc039f98d8058b1939e8a /usr | |
parent | 117642a37ee11987e09be900ede229a7b2928d39 (diff) | |
download | pfsense-f8f2a6e425dd3ab0c3ddee0fc74c7c487d10f384.zip pfsense-f8f2a6e425dd3ab0c3ddee0fc74c7c487d10f384.tar.gz |
Fix the no nat option so it is correctly set and unset from the config.
1st commit!
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_out_edit.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 1c8f40b..09fa299 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -174,7 +174,13 @@ if ($_POST) { $natent['descr'] = $_POST['descr']; $natent['target'] = $_POST['target']; $natent['interface'] = $_POST['interface']; - $natent['nonat'] = $_POST['nonat']; + + /* if user has selected not nat, set it here */ + if(isset($_POST['nonat'])) { + $natent['nonat'] = true; + } else { + $natent['nonat'] = false; + } if ($ext == "any") $natent['destination']['any'] = true; |