summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Li <josh@jrl.ninja>2020-08-10 15:37:27 -0700
committerJoshua Li <josh@jrl.ninja>2020-08-10 15:44:08 -0700
commitd4001c11f92cd80059993f2d657ab1214c469221 (patch)
tree7e818c80ccb6a7f7dc11ceb56034942e0254da28
parent450ad79b1892594033631f0cd6e7d6ab4a2f7cef (diff)
fix: workaround
-rw-r--r--sshuttle/client.py5
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)