Compare commits

...

1 Commits

Author SHA1 Message Date
Fabian Dill
8fdad3cbba CommonClient: handle Firefox removing the password part of userinfo 2024-01-28 06:47:34 +01:00

View File

@@ -612,6 +612,10 @@ async def server_loop(ctx: CommonContext, address: typing.Optional[str] = None)
address = f"ws://{address}" if "://" not in address \
else address.replace("archipelago://", "ws://")
uri = urllib.parse.urlparse(address)
if uri.username and uri.password is None:
# Fix for Firefox stripping empty password https://bugzilla.mozilla.org/show_bug.cgi?id=1876952
address = address.replace("@", ":@")
server_url = urllib.parse.urlparse(address)
if server_url.username: