From b468a0c908bb1c967b4aa2f2f2a8b7b735615dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20K=C3=BCthe?= Date: Mon, 4 Dec 2023 12:55:36 +0000 Subject: [PATCH] Tunnel: Check other arguments --- meshtastic/tunnel.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meshtastic/tunnel.py b/meshtastic/tunnel.py index 65c5f5c..d1b1d82 100644 --- a/meshtastic/tunnel.py +++ b/meshtastic/tunnel.py @@ -49,6 +49,12 @@ class Tunnel: if not iface: raise Exception("Tunnel() must have a interface") + if not subnet: + raise Exception("Tunnel() must have a subnet") + + if not netmask: + raise Exception("Tunnel() must have a netmask") + self.iface = iface self.subnetPrefix = subnet