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
ac3ccb76
Unverified
Commit
ac3ccb76
authored
Oct 20, 2020
by
Brian May
Committed by
GitHub
Oct 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #544 from skuhl/fix-no-remote
Allow no remote to work.
parents
1f3c74a1
574ed8e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
client.py
sshuttle/client.py
+3
-3
ssh.py
sshuttle/ssh.py
+2
-0
No files found.
sshuttle/client.py
View file @
ac3ccb76
...
...
@@ -569,9 +569,9 @@ def main(listenip_v6, listenip_v4,
user
,
sudo_pythonpath
):
if
not
remotename
:
# XXX: We can't make it required at the argparse level,
# because sshuttle calls out to itself in FirewallClient.
raise
Fatal
(
"You must specify -r/--remote
."
)
print
(
"WARNING: You must specify -r/--remote to securely route "
"traffic to a remote machine. Running without -r/--remote "
"is only recommended for testing
."
)
if
daemon
:
try
:
...
...
sshuttle/ssh.py
View file @
ac3ccb76
...
...
@@ -43,6 +43,8 @@ def parse_hostport(rhostport):
"""
# leave use of default port to ssh command to prevent overwriting
# ports configured in ~/.ssh/config when no port is given
if
rhostport
is
None
or
len
(
rhostport
)
==
0
:
return
None
,
None
,
None
,
None
port
=
None
username
=
None
password
=
None
...
...
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