Update CreateServer.php (#364)

This commit is contained in:
MartinOscar 2024-06-11 20:36:22 +02:00 committed by GitHub
parent f216376265
commit 46a24a087b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
} }
} }