mirror of
https://github.com/meshtastic/python.git
synced 2026-01-01 20:38:03 -05:00
Tunnel: Pass variable only if it has content.
Closes https://github.com/meshtastic/python/issues/468
This commit is contained in:
@@ -771,7 +771,10 @@ def onConnected(interface):
|
||||
if interface.noProto:
|
||||
logging.warning(f"Not starting Tunnel - disabled by noProto")
|
||||
else:
|
||||
tunnel.Tunnel(interface, subnet=args.tunnel_net)
|
||||
if args.tunnel_net:
|
||||
tunnel.Tunnel(interface, subnet=args.tunnel_net)
|
||||
else:
|
||||
tunnel.Tunnel(interface)
|
||||
|
||||
if args.ack or (args.dest != BROADCAST_ADDR and waitForAckNak):
|
||||
print(
|
||||
|
||||
Reference in New Issue
Block a user