Skip to content

Commit b468a0c

Browse files
committed
Tunnel: Check other arguments
1 parent de154e5 commit b468a0c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

meshtastic/tunnel.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ def __init__(self, iface, subnet="10.115", netmask="255.255.0.0"):
4949
if not iface:
5050
raise Exception("Tunnel() must have a interface")
5151

52+
if not subnet:
53+
raise Exception("Tunnel() must have a subnet")
54+
55+
if not netmask:
56+
raise Exception("Tunnel() must have a netmask")
57+
5258
self.iface = iface
5359
self.subnetPrefix = subnet
5460

0 commit comments

Comments
 (0)