Fixed order of have_tunnel check

This commit is contained in:
Ryan Tolboom
2021-10-20 21:38:19 -04:00
parent 19613ff53b
commit a6d2ce11cc

View File

@@ -511,7 +511,7 @@ def common():
# We assume client is fully connected now
onConnected(client)
if args.noproto or (args.tunnel and have_tunnel): # loop until someone presses ctrlc
if args.noproto or (have_tunnel and args.tunnel): # loop until someone presses ctrlc
while True:
time.sleep(1000)