Update AllocationsRelationManager.php

This commit is contained in:
MartinOscar 2024-06-03 06:30:05 +02:00 committed by GitHub
parent f6ef76d98e
commit 189d564f87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,9 +113,11 @@ class AllocationsRelationManager extends RelationManager
$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);
}
}
$uniquePorts = $ports->unique()->values();