Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
sshuttle
Commits
16b46288
Unverified
Commit
16b46288
authored
Jun 10, 2020
by
Brian May
Committed by
GitHub
Jun 10, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #460 from alekseymykhailov/fix_connection
fix connection with @ sign in username
parents
7d998f6d
500aa656
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ssh.py
sshuttle/ssh.py
+1
-2
No files found.
sshuttle/ssh.py
View file @
16b46288
...
@@ -76,9 +76,8 @@ def parse_hostport(rhostport):
...
@@ -76,9 +76,8 @@ def parse_hostport(rhostport):
if
"@"
in
host
:
if
"@"
in
host
:
# split username (and possible password) from the host[:port]
# split username (and possible password) from the host[:port]
username
,
host
=
host
.
split
(
"@"
)
username
,
host
=
host
.
rsplit
(
"@"
,
1
)
# Fix #410 bad username error detect
# Fix #410 bad username error detect
# username cannot contain an @ sign in this scenario
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
(
":"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment