mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
Firewall/NAT/Port Forward - dont calc local port range for alias (#6289)
if port alias is specified as a Redirect target port, range is not calculated for rdr rule (first port in alias is used)
This commit is contained in:
parent
fdcd17cd57
commit
6bb7da4cbf
@ -488,7 +488,7 @@ $( document ).ready(function() {
|
||||
<td>
|
||||
<?php
|
||||
$localport = $natent['local-port'];
|
||||
if (strpos($natent['destination']['port'],'-') !== false) {
|
||||
if (!is_alias($localport) && strpos($natent['destination']['port'],'-') !== false) {
|
||||
$natlocalport = preg_match('/^(\d){1,5}$/', $natent['local-port']) ? (int)$natent['local-port'] : 1;
|
||||
list($dstbeginport, $dstendport) = explode("-", $natent['destination']['port']);
|
||||
$dstbeginport = preg_match('/^\d*$/', $dstbeginport) ? (int)$dstbeginport : 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user