mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 21:04:44 +02:00
Update CreateServer.php (#364)
This commit is contained in:
parent
f216376265
commit
46a24a087b
@ -192,7 +192,8 @@ class CreateServer extends CreateRecord
|
|||||||
|
|
||||||
$start = max((int) $start, 0);
|
$start = max((int) $start, 0);
|
||||||
$end = min((int) $end, 2 ** 16 - 1);
|
$end = min((int) $end, 2 ** 16 - 1);
|
||||||
for ($i = $start; $i <= $end; $i++) {
|
$range = $start <= $end ? range($start, $end) : range($end, $start);
|
||||||
|
foreach ($range as $i) {
|
||||||
$ports->push($i);
|
$ports->push($i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user