From 68195ab0b78db91b3d64f2abf9eb190fc1f9232d Mon Sep 17 00:00:00 2001 From: notCharles Date: Mon, 13 May 2024 19:57:42 -0400 Subject: [PATCH] Remove ports, >1024 | <65535 --- .../RelationManagers/AllocationsRelationManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php b/app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php index 9bda3ee66..d4d5b07e4 100644 --- a/app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php +++ b/app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php @@ -129,6 +129,8 @@ class AllocationsRelationManager extends RelationManager $ports = $sortedPorts; } + $ports = $ports->filter(fn ($port) => $port > 1024 && $port < 65535)->values(); + if ($update) { $set('allocation_ports', $ports->all()); }