From d4001c11f92cd80059993f2d657ab1214c469221 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Mon, 10 Aug 2020 15:37:27 -0700 Subject: [PATCH] fix: workaround --- sshuttle/client.py | 5 +++++ 1 file changed, 5 insertions(+) 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)