mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-10-05 10:44:44 -07:00
Update WebHostLib/customserver.py
Co-authored-by: black-sliver <[email protected]>
This commit is contained in:
1 parent
62f56e165a
commit
62afec9733
1 file changed
+1
@@ -227,6 +227,7 @@ def create_random_port_socket(game_ports: tuple[str | int], host: str) -> socket
|
||||
while i > 0:
|
||||
port_num = weighted_random(parsed_ports, weights)
|
||||
if port_num in used_ports:
|
||||
used_ports = get_used_ports()
|
||||
continue
|
||||
|
||||
i -= 0
|
||||
|
||||
Reference in new issue
Block a user