From f8db5a545d92aeeca84d8213f62ae6c693c7005f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 23 May 2022 00:00:14 +0200 Subject: [PATCH] Fixed interface mode check --- RNS/Reticulum.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index 88e2709..b34b065 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -535,7 +535,7 @@ class Reticulum: else: interface.OUT = True - if interface_mode != Interface.Interface.MODE_FULL: + if interface_mode == Interface.Interface.MODE_AP: RNS.log(str(interface)+" does not support Access Point mode, reverting to default mode: Full", RNS.LOG_WARNING) interface_mode = Interface.Interface.MODE_FULL @@ -570,7 +570,7 @@ class Reticulum: else: interface.OUT = True - if interface_mode != Interface.Interface.MODE_FULL: + if interface_mode == Interface.Interface.MODE_AP: RNS.log(str(interface)+" does not support Access Point mode, reverting to default mode: Full", RNS.LOG_WARNING) interface_mode = Interface.Interface.MODE_FULL @@ -601,7 +601,7 @@ class Reticulum: else: interface.OUT = True - if interface_mode != Interface.Interface.MODE_FULL: + if interface_mode == Interface.Interface.MODE_AP: RNS.log(str(interface)+" does not support Access Point mode, reverting to default mode: Full", RNS.LOG_WARNING) interface_mode = Interface.Interface.MODE_FULL