summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_1to1_edit.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-09-04 23:37:39 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-09-05 02:16:20 -0600
commitaecbc33ef15c303e73d7abc6177eb04d58018985 (patch)
tree4f2b765f591e54c42d81972d9313ee731778044d /usr/local/www/firewall_nat_1to1_edit.php
parentd3690bcb51963ab6880c3853fcff27fab22fc88b (diff)
downloadpfsense-aecbc33ef15c303e73d7abc6177eb04d58018985.zip
pfsense-aecbc33ef15c303e73d7abc6177eb04d58018985.tar.gz
Fix "use system default" setting for reflection on NAT 1:1 rule edit page and remove reference to nonexistent "externalmask" field.
Diffstat (limited to 'usr/local/www/firewall_nat_1to1_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_1to1_edit.php3
1 files changed, 2 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud