mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
pconfig_to_address, don't save range when $endport is 0, closes https://github.com/opnsense/core/issues/1611
This commit is contained in:
parent
2d2771acb3
commit
0280a875ed
@ -408,7 +408,7 @@ function pconfig_to_address(&$adr, $padr, $pmask, $pnot=false, $pbeginport=0, $p
|
||||
if (is_alias($pbeginport)) {
|
||||
$adr['port'] = $pbeginport;
|
||||
} elseif (($pbeginport != 0) && ($pbeginport != "any")) {
|
||||
if ($pbeginport != $pendport) {
|
||||
if ($pbeginport != $pendport && !empty($pendport)) {
|
||||
$adr['port'] = $pbeginport . "-" . $pendport;
|
||||
} else {
|
||||
$adr['port'] = $pbeginport;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user