diff options
author | Joshua Li <josh@jrl.ninja> | 2020-08-10 15:37:27 -0700 |
---|---|---|
committer | Joshua Li <josh@jrl.ninja> | 2020-08-10 15:44:08 -0700 |
commit | d4001c11f92cd80059993f2d657ab1214c469221 (patch) | |
tree | 7e818c80ccb6a7f7dc11ceb56034942e0254da28 | |
parent | 450ad79b1892594033631f0cd6e7d6ab4a2f7cef (diff) |
fix: workaround
-rw-r--r-- | sshuttle/client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py index 9a0f15b..fae2931 100644 --- a/sshuttle/client.py +++ b/sshuttle/client.py @@ -557,6 +557,11 @@ def main(listenip_v6, listenip_v4, subnets_include, subnets_exclude, daemon, to_nameserver, pidfile, 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: try: check_daemon(pidfile) |