Unverified Commit ac3ccb76 authored by Brian May's avatar Brian May Committed by GitHub

Merge pull request #544 from skuhl/fix-no-remote

Allow no remote to work.
parents 1f3c74a1 574ed8e5
......@@ -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:
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment