summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-02 19:17:18 -0500
committersullrich <sullrich@pfsense.org>2009-12-02 19:17:18 -0500
commit21f88b49b799400a96f586b8fc9efb6c969ace93 (patch)
tree580efbd704d2730b2e15c9272f4a1ddc0e25fdb2 /usr
parent5d2742d54fb5784880ee348a8a1515be7c0ebaf4 (diff)
downloadpfsense-21f88b49b799400a96f586b8fc9efb6c969ace93.zip
pfsense-21f88b49b799400a96f586b8fc9efb6c969ace93.tar.gz
Restore the external port range to. Resolves #192
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index 7c3cfa3..635f7f4 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -62,6 +62,8 @@ if (isset($id) && $a_nat[$id]) {
$pconfig['extaddr'] = $a_nat[$id]['external-address'];
$pconfig['proto'] = $a_nat[$id]['protocol'];
list($pconfig['beginport'],$pconfig['endport']) = explode("-", $a_nat[$id]['external-port']);
+ if(!$pconfig['endport'])
+ $pconfig['endport'] = $pconfig['beginport'];
$pconfig['localip'] = $a_nat[$id]['target'];
$pconfig['localbeginport'] = $a_nat[$id]['local-port'];
$pconfig['descr'] = $a_nat[$id]['descr'];
OpenPOWER on IntegriCloud