1.1.30 oops - need to short circuit the tunnel check BEFORE the and

This commit is contained in:
Kevin Hester
2020-12-28 09:37:40 +08:00
parent e89be6d56a
commit 3df8a16de1
2 changed files with 2 additions and 2 deletions

View File

@@ -278,7 +278,7 @@ def onConnected(interface):
url = pyqrcode.create(interface.channelURL)
print(url.terminal())
if args.tunnel and have_tunnel:
if have_tunnel and args.tunnel :
closeNow = False # Even if others said we could close, stay open if the user asked for a tunnel
tunnel.Tunnel(interface, subnet=args.tunnel_net)