mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-16 10:29:36 +01:00
Merge pull request #460 from alekseymykhailov/fix_connection
fix connection with @ sign in username
This commit is contained in:
commit
16b462880b
@ -76,9 +76,8 @@ def parse_hostport(rhostport):
|
||||
|
||||
if "@" in host:
|
||||
# split username (and possible password) from the host[:port]
|
||||
username, host = host.split("@")
|
||||
username, host = host.rsplit("@", 1)
|
||||
# Fix #410 bad username error detect
|
||||
# username cannot contain an @ sign in this scenario
|
||||
if ":" in username:
|
||||
# this will even allow for the username to be empty
|
||||
username, password = username.split(":")
|
||||
|
Loading…
Reference in New Issue
Block a user