mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-26 15:30:18 +00:00
Cleanup
This commit is contained in:
parent
24b7cb777f
commit
8e5b3b4e83
@ -421,7 +421,6 @@ class Reticulum:
|
|||||||
RNS.log("Please remove this AutoInterface instance from your configuration file.", RNS.LOG_ERROR);
|
RNS.log("Please remove this AutoInterface instance from your configuration file.", RNS.LOG_ERROR);
|
||||||
RNS.log("You will have to manually configure other interfaces for connectivity.", RNS.LOG_ERROR);
|
RNS.log("You will have to manually configure other interfaces for connectivity.", RNS.LOG_ERROR);
|
||||||
|
|
||||||
|
|
||||||
if c["type"] == "UDPInterface":
|
if c["type"] == "UDPInterface":
|
||||||
device = c["device"] if "device" in c else None
|
device = c["device"] if "device" in c else None
|
||||||
port = int(c["port"]) if "port" in c else None
|
port = int(c["port"]) if "port" in c else None
|
||||||
@ -463,7 +462,6 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
interface.ifac_size = 16
|
interface.ifac_size = 16
|
||||||
|
|
||||||
|
|
||||||
if c["type"] == "TCPServerInterface":
|
if c["type"] == "TCPServerInterface":
|
||||||
device = c["device"] if "device" in c else None
|
device = c["device"] if "device" in c else None
|
||||||
port = int(c["port"]) if "port" in c else None
|
port = int(c["port"]) if "port" in c else None
|
||||||
@ -504,7 +502,6 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
interface.ifac_size = 16
|
interface.ifac_size = 16
|
||||||
|
|
||||||
|
|
||||||
if c["type"] == "TCPClientInterface":
|
if c["type"] == "TCPClientInterface":
|
||||||
kiss_framing = False
|
kiss_framing = False
|
||||||
if "kiss_framing" in c and c.as_bool("kiss_framing") == True:
|
if "kiss_framing" in c and c.as_bool("kiss_framing") == True:
|
||||||
@ -542,7 +539,6 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
interface.ifac_size = 16
|
interface.ifac_size = 16
|
||||||
|
|
||||||
|
|
||||||
if c["type"] == "I2PInterface":
|
if c["type"] == "I2PInterface":
|
||||||
i2p_peers = c.as_list("peers") if "peers" in c else None
|
i2p_peers = c.as_list("peers") if "peers" in c else None
|
||||||
connectable = c.as_bool("connectable") if "connectable" in c else False
|
connectable = c.as_bool("connectable") if "connectable" in c else False
|
||||||
@ -576,7 +572,6 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
interface.ifac_size = 16
|
interface.ifac_size = 16
|
||||||
|
|
||||||
|
|
||||||
if c["type"] == "SerialInterface":
|
if c["type"] == "SerialInterface":
|
||||||
port = c["port"] if "port" in c else None
|
port = c["port"] if "port" in c else None
|
||||||
speed = int(c["speed"]) if "speed" in c else 9600
|
speed = int(c["speed"]) if "speed" in c else 9600
|
||||||
|
Loading…
Reference in New Issue
Block a user