Skip to content

Commit de154e5

Browse files
committed
Tunnel: Pass variable only if it has content.
Closes #468
1 parent 70bb58b commit de154e5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

meshtastic/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,10 @@ def setSimpleConfig(modem_preset):
771771
if interface.noProto:
772772
logging.warning(f"Not starting Tunnel - disabled by noProto")
773773
else:
774-
tunnel.Tunnel(interface, subnet=args.tunnel_net)
774+
if args.tunnel_net:
775+
tunnel.Tunnel(interface, subnet=args.tunnel_net)
776+
else:
777+
tunnel.Tunnel(interface)
775778

776779
if args.ack or (args.dest != BROADCAST_ADDR and waitForAckNak):
777780
print(

0 commit comments

Comments
 (0)