Skip to content

Commit 183ca35

Browse files
authored
CommonClient: Port Casting Bug (ArchipelagoMW#2975)
1 parent fcaaa19 commit 183ca35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommonClient.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,13 +643,13 @@ async def server_loop(ctx: CommonContext, address: typing.Optional[str] = None)
643643
ctx.username = server_url.username
644644
if server_url.password:
645645
ctx.password = server_url.password
646-
port = server_url.port or 38281
647646

648647
def reconnect_hint() -> str:
649648
return ", type /connect to reconnect" if ctx.server_address else ""
650649

651650
logger.info(f'Connecting to Archipelago server at {address}')
652651
try:
652+
port = server_url.port or 38281 # raises ValueError if invalid
653653
socket = await websockets.connect(address, port=port, ping_timeout=None, ping_interval=None,
654654
ssl=get_ssl_context() if address.startswith("wss://") else None)
655655
if ctx.ui is not None:

0 commit comments

Comments
 (0)