fix value type bug on ephemeral type

This commit is contained in:
Uriel
2026-03-05 08:42:03 -03:00
parent f8b730308d
commit d6473fa0ed

View File

@@ -190,7 +190,7 @@ def get_random_port(game_ports: list):
if type(item) is str and '-' in item:
start, end = map(int, item.split('-'))
available_ports.append(range(start, end+1))
elif int(item) == "0":
elif int(item) == 0:
ephemeral_allowed = True
else:
available_ports.append([int(item)])