mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
Fix import paths
This commit is contained in:
parent
64bdc4c18c
commit
01600b96a4
@ -906,6 +906,7 @@ class Reticulum:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("The interface \""+name+"\" could not be created. Check your configuration file for errors!", RNS.LOG_ERROR)
|
RNS.log("The interface \""+name+"\" could not be created. Check your configuration file for errors!", RNS.LOG_ERROR)
|
||||||
RNS.log("The contained exception was: "+str(e), RNS.LOG_ERROR)
|
RNS.log("The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
raise e
|
||||||
RNS.panic()
|
RNS.panic()
|
||||||
else:
|
else:
|
||||||
RNS.log("The interface name \""+name+"\" was already used. Check your configuration file for errors!", RNS.LOG_ERROR)
|
RNS.log("The interface name \""+name+"\" was already used. Check your configuration file for errors!", RNS.LOG_ERROR)
|
||||||
|
4
RNS/vendor/ifaddr/niwrapper.py
vendored
4
RNS/vendor/ifaddr/niwrapper.py
vendored
@ -8,11 +8,11 @@ AF_INET6 = socket.AF_INET6.value
|
|||||||
AF_INET = socket.AF_INET.value
|
AF_INET = socket.AF_INET.value
|
||||||
|
|
||||||
def interfaces() -> List[str]:
|
def interfaces() -> List[str]:
|
||||||
adapters = ifaddr.get_adapters(include_unconfigured=True)
|
adapters = RNS.vendor.ifaddr.get_adapters(include_unconfigured=True)
|
||||||
return [a.name for a in adapters]
|
return [a.name for a in adapters]
|
||||||
|
|
||||||
def ifaddresses(ifname) -> dict:
|
def ifaddresses(ifname) -> dict:
|
||||||
adapters = ifaddr.get_adapters(include_unconfigured=True)
|
adapters = RNS.vendor.ifaddr.get_adapters(include_unconfigured=True)
|
||||||
ifa = {}
|
ifa = {}
|
||||||
for a in adapters:
|
for a in adapters:
|
||||||
if a.name == ifname:
|
if a.name == ifname:
|
||||||
|
Loading…
Reference in New Issue
Block a user