summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_1to1_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-12-25 16:06:06 -0500
committerChris Buechler <cmb@pfsense.org>2010-12-25 16:06:06 -0500
commit9422a50f6867b00986dedc60a39d5f6b5823fe04 (patch)
tree62a98671203498d284ad2f3e569e3f4e38821270 /usr/local/www/firewall_nat_1to1_edit.php
parentdf0c55a34bee26ff011cf9689d8008603eddf399 (diff)
downloadpfsense-9422a50f6867b00986dedc60a39d5f6b5823fe04.zip
pfsense-9422a50f6867b00986dedc60a39d5f6b5823fe04.tar.gz
default to single host on 1:1 NAT as it always has and is the most common usage
Diffstat (limited to 'usr/local/www/firewall_nat_1to1_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_1to1_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php
index e586fba..6422be2 100755
--- a/usr/local/www/firewall_nat_1to1_edit.php
+++ b/usr/local/www/firewall_nat_1to1_edit.php
@@ -330,7 +330,7 @@ function typesel_change() {
<?php
$sel = is_specialnet($pconfig['src']); ?>
<option value="any" <?php if ($pconfig['src'] == "any") { echo "selected"; } ?>><?=gettext("any"); ?></option>
- <option value="single" <?php if (($pconfig['srcmask'] == 32) && !$sel) { echo "selected"; $sel = 1; } ?>><?=gettext("Single host"); ?></option>
+ <option value="single" <?php if ((($pconfig['srcmask'] == 32) || !isset($pconfig['srcmask'])) && !$sel) { echo "selected"; $sel = 1; } ?>><?=gettext("Single host"); ?></option>
<option value="network" <?php if (!$sel) echo "selected"; ?>><?=gettext("Network"); ?></option>
<?php if(have_ruleint_access("pptp")): ?>
<option value="pptp" <?php if ($pconfig['src'] == "pptp") { echo "selected"; } ?>><?=gettext("PPTP clients"); ?></option>
OpenPOWER on IntegriCloud