mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-05-11 11:34:38 +02:00
fix: support ':' sign in password
This commit is contained in:
parent
a1dd6859b0
commit
7fa927ef8c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user