mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Restore the external port range to. Resolves #192
This commit is contained in:
parent
5d2742d54f
commit
21f88b49b7
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user