mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-30 01:00:18 +00:00
Interface mode defaults
This commit is contained in:
parent
0e1279d012
commit
3a215be859
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user