fix connection with : sign in password

This commit is contained in:
Christian Schlotter 2025-02-21 16:52:30 +01:00 committed by Christian Schlotter
parent a1dd6859b0
commit d80bbc384b
No known key found for this signature in database
GPG Key ID: 0E487122453EB0AC

View File

@ -56,7 +56,7 @@ def parse_hostport(rhostport):
# Fix #410 bad username error detect # Fix #410 bad username error detect
if ":" in username: if ":" in username:
# this will even allow for the username to be empty # this will even allow for the username to be empty
username, password = username.split(":") username, password = username.split(":", 1)
if ":" in host: if ":" in host:
# IPv6 address and/or got a port specified # IPv6 address and/or got a port specified