mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-31 04:24:32 -04:00
Use internal netinfo implementation
This commit is contained in:
parent
d34cefe31d
commit
8e4b0b3b16
4 changed files with 6 additions and 6 deletions
|
@ -55,7 +55,7 @@ class BackboneInterface(Interface):
|
|||
|
||||
@staticmethod
|
||||
def get_address_for_if(name, bind_port, prefer_ipv6=False):
|
||||
import RNS.vendor.ifaddr.niwrapper as netinfo
|
||||
from RNS.vendor import netinfo
|
||||
ifaddr = netinfo.ifaddresses(name)
|
||||
if len(ifaddr) < 1:
|
||||
raise SystemError(f"No addresses available on specified kernel interface \"{name}\" for BackboneInterface to bind to")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue