From 3a215be859379e9fe362a9990fcadd580578f917 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 25 Feb 2022 18:56:09 +0100 Subject: [PATCH] Interface mode defaults --- RNS/Reticulum.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index 6c7ab67..7caa5e3 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -384,6 +384,10 @@ class Reticulum: else: interface.OUT = True + if interface_mode != Interface.Interface.MODE_FULL: + RNS.log(str(interface)+" does not support Access Point mode, reverting to default mode: Full", RNS.LOG_WARNING) + interface_mode = Interface.Interface.MODE_FULL + interface.mode = interface_mode RNS.Transport.interfaces.append(interface) @@ -410,6 +414,10 @@ class Reticulum: else: interface.OUT = True + if interface_mode != Interface.Interface.MODE_FULL: + RNS.log(str(interface)+" does not support Access Point mode, reverting to default mode: Full", RNS.LOG_WARNING) + interface_mode = Interface.Interface.MODE_FULL + interface.mode = interface_mode RNS.Transport.interfaces.append(interface) @@ -432,6 +440,10 @@ class Reticulum: else: interface.OUT = True + if interface_mode != Interface.Interface.MODE_FULL: + RNS.log(str(interface)+" does not support Access Point mode, reverting to default mode: Full", RNS.LOG_WARNING) + interface_mode = Interface.Interface.MODE_FULL + interface.mode = interface_mode RNS.Transport.interfaces.append(interface)