Added interface mode shorthand
This commit is contained in:
parent
b35122a872
commit
03d3478b5e
@ -307,7 +307,7 @@ class Reticulum:
|
|||||||
if "mode" in c:
|
if "mode" in c:
|
||||||
if c["mode"] == "full":
|
if c["mode"] == "full":
|
||||||
interface_mode = Interface.Interface.MODE_FULL
|
interface_mode = Interface.Interface.MODE_FULL
|
||||||
elif c["mode"] == "accesspoint" or c["mode"] == "ap":
|
elif c["mode"] == "access_point" or c["mode"] == "accesspoint" or c["mode"] == "ap":
|
||||||
interface_mode = Interface.Interface.MODE_ACCESS_POINT
|
interface_mode = Interface.Interface.MODE_ACCESS_POINT
|
||||||
elif c["mode"] == "pointtopoint" or c["mode"] == "ptp":
|
elif c["mode"] == "pointtopoint" or c["mode"] == "ptp":
|
||||||
interface_mode = Interface.Interface.MODE_POINT_TO_POINT
|
interface_mode = Interface.Interface.MODE_POINT_TO_POINT
|
||||||
|
Loading…
Reference in New Issue
Block a user