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

View File

@@ -192,7 +192,8 @@ class CreateServer extends CreateRecord
$start = max((int) $start, 0);
$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);
}
}