summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-13 13:41:39 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-13 13:41:39 -0500
commitd642aca406161552dbd6b2c19585eaba42a242a6 (patch)
treeb142bcef4242de5c0b45c2362450e79038136e96 /src
parent1f6bcae22893442782eb44bbebb2af8ca3703104 (diff)
downloadpfsense-d642aca406161552dbd6b2c19585eaba42a242a6.zip
pfsense-d642aca406161552dbd6b2c19585eaba42a242a6.tar.gz
Don't validate 'external' when nobinat is checked
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/firewall_nat_1to1_edit.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_nat_1to1_edit.php b/src/usr/local/www/firewall_nat_1to1_edit.php
index 8a8381b..bdc00b9 100644
--- a/src/usr/local/www/firewall_nat_1to1_edit.php
+++ b/src/usr/local/www/firewall_nat_1to1_edit.php
@@ -147,8 +147,13 @@ if ($_POST) {
}
/* input validation */
- $reqdfields = explode(" ", "interface external");
- $reqdfieldsn = array(gettext("Interface"), gettext("External subnet"));
+ if (isset($_POST['nobinat'])) {
+ $reqdfields = explode(" ", "interface");
+ $reqdfieldsn = array(gettext("Interface"));
+ } else {
+ $reqdfields = explode(" ", "interface external");
+ $reqdfieldsn = array(gettext("Interface"), gettext("External subnet"));
+ }
if ($_POST['srctype'] == "single" || $_POST['srctype'] == "network") {
$reqdfields[] = "src";
OpenPOWER on IntegriCloud