forked from mirror/Archipelago
Update WebHostLib/customserver.py
Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
@@ -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