diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-12-25 16:06:06 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-12-25 16:06:06 -0500 |
commit | 9422a50f6867b00986dedc60a39d5f6b5823fe04 (patch) | |
tree | 62a98671203498d284ad2f3e569e3f4e38821270 /usr | |
parent | df0c55a34bee26ff011cf9689d8008603eddf399 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/firewall_nat_1to1_edit.php | 2 |
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> |