From aecbc33ef15c303e73d7abc6177eb04d58018985 Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Sat, 4 Sep 2010 23:37:39 -0600 Subject: Fix "use system default" setting for reflection on NAT 1:1 rule edit page and remove reference to nonexistent "externalmask" field. --- usr/local/www/firewall_nat_1to1_edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php index 89c3335..f04c736 100755 --- a/usr/local/www/firewall_nat_1to1_edit.php +++ b/usr/local/www/firewall_nat_1to1_edit.php @@ -172,7 +172,6 @@ if ($_POST) { $natent['disabled'] = isset($_POST['disabled']) ? true:false; $natent['external'] = $_POST['external']; - $natent['externalmask'] = $_POST['externalmask']; $natent['descr'] = $_POST['descr']; $natent['interface'] = $_POST['interface']; @@ -184,6 +183,8 @@ if ($_POST) { if ($_POST['natreflection'] == "enable" || $_POST['natreflection'] == "disable") $natent['natreflection'] = $_POST['natreflection']; + else + unset($natent['natreflection']); if (isset($id) && $a_1to1[$id]) $a_1to1[$id] = $natent; -- cgit v1.1