Commit d4001c11 authored by Joshua Li's avatar Joshua Li

fix: workaround

parent 450ad79b
...@@ -557,6 +557,11 @@ def main(listenip_v6, listenip_v4, ...@@ -557,6 +557,11 @@ def main(listenip_v6, listenip_v4,
subnets_include, subnets_exclude, daemon, to_nameserver, pidfile, subnets_include, subnets_exclude, daemon, to_nameserver, pidfile,
user, sudo_pythonpath): 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.")
if daemon: if daemon:
try: try:
check_daemon(pidfile) check_daemon(pidfile)
......
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