Work on AutoInterface recovery on WiFi carrier loss

This commit is contained in:
Mark Qvist 2022-02-22 14:43:14 +01:00
parent 05288d7c97
commit aae10ede72
2 changed files with 33 additions and 8 deletions

View file

@ -273,6 +273,7 @@ class Reticulum:
self.__start_local_interface()
if self.is_shared_instance or self.is_standalone_instance:
RNS.log("Bringing up system interfaces...", RNS.LOG_DEBUG)
interface_names = []
for name in self.config["interfaces"]:
if not name in interface_names:
@ -545,6 +546,9 @@ class Reticulum:
else:
RNS.log("The interface name \""+name+"\" was already used. Check your configuration file for errors!", RNS.LOG_ERROR)
RNS.panic()
RNS.log("System interfaces are ready", RNS.LOG_DEBUG)
def __create_default_config(self):