From f8f2a6e425dd3ab0c3ddee0fc74c7c487d10f384 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Mon, 19 Sep 2005 21:07:43 +0000 Subject: Fix the no nat option so it is correctly set and unset from the config. 1st commit! --- usr/local/www/firewall_nat_out_edit.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'usr/local/www/firewall_nat_out_edit.php') 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; -- cgit v1.1