mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-21 15:03:18 -07:00
CommonClient: handle Firefox removing the password part of userinfo
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user