mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 05:30:17 +00:00
Cleanup
This commit is contained in:
parent
996161e2f4
commit
7b43ff0cef
@ -446,14 +446,7 @@ class Reticulum:
|
|||||||
if "interfaces" in self.config:
|
if "interfaces" in self.config:
|
||||||
for name in self.config["interfaces"]:
|
for name in self.config["interfaces"]:
|
||||||
if not name in interface_names:
|
if not name in interface_names:
|
||||||
# TODO: We really need to generalise this way of instantiating
|
|
||||||
# and configuring interfaces. Ideally, interfaces should just
|
|
||||||
# have a conrfig dict passed to their init method, and return
|
|
||||||
# a ready interface, onto which this routine can configure any
|
|
||||||
# generic or extra parameters.
|
|
||||||
|
|
||||||
c = self.config["interfaces"][name]
|
c = self.config["interfaces"][name]
|
||||||
|
|
||||||
interface_mode = Interface.Interface.MODE_FULL
|
interface_mode = Interface.Interface.MODE_FULL
|
||||||
|
|
||||||
if "interface_mode" in c:
|
if "interface_mode" in c:
|
||||||
|
Loading…
Reference in New Issue
Block a user