mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
Fixed interface mode check
This commit is contained in:
parent
a79f6e7efa
commit
f8db5a545d
@ -535,7 +535,7 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
interface.OUT = True
|
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)
|
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.Interface.MODE_FULL
|
||||||
|
|
||||||
@ -570,7 +570,7 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
interface.OUT = True
|
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)
|
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.Interface.MODE_FULL
|
||||||
|
|
||||||
@ -601,7 +601,7 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
interface.OUT = True
|
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)
|
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.Interface.MODE_FULL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user