From 61d708beb19b75c08f069e913f6e3569d79d4535 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 4 Dec 2005 23:35:58 +0000 Subject: MFC firewall_nat_out_edit.php --- usr/local/www/firewall_nat_out_edit.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 23e6bf5..93aa412 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -133,7 +133,7 @@ if ($_POST) { $osn = "any"; } else { $osn = gen_subnet($_POST['source'], $_POST['source_subnet']) . "/" . $_POST['source_subnet']; - } + } /* check for existing entries */ if ($_POST['destination_type'] == "any") @@ -181,11 +181,10 @@ if ($_POST) { $natent['interface'] = $_POST['interface']; /* if user has selected not nat, set it here */ - if(isset($_POST['nonat'])) { + if(isset($_POST['nonat'])) $natent['nonat'] = true; - } else { - $natent['nonat'] = false; - } + else + unset($natent['nonat']); if ($ext == "any") $natent['destination']['any'] = true; @@ -281,7 +280,7 @@ function sourcesel_change() { (leave blank for any) + (leave blank for any) - Target + Translation @@ -401,7 +400,7 @@ function sourcesel_change() { - +
>
Description -- cgit v1.1