mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-03-31 11:16:21 +02:00
Merge pull request #502 from joshuarli/ref/require-remote
fix: require -r/--remote
This commit is contained in:
commit
45f8cce2f8
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user