Skip to content

Commit

Permalink
CommonClient: Port Casting Bug (ArchipelagoMW#2975)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint authored Mar 20, 2024
1 parent fcaaa19 commit 183ca35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CommonClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,13 +643,13 @@ async def server_loop(ctx: CommonContext, address: typing.Optional[str] = None)
ctx.username = server_url.username
if server_url.password:
ctx.password = server_url.password
port = server_url.port or 38281

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

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

0 comments on commit 183ca35

Please sign in to comment.