fix: support ':' sign in password

This commit is contained in:
Christian Schlotter 2025-02-21 22:23:36 +01:00 committed by GitHub
parent a1dd6859b0
commit 7fa927ef8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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