This commit is contained in:
Mark Qvist 2025-04-11 12:38:46 +02:00
parent c07e968218
commit c83043b087
6 changed files with 6 additions and 6 deletions

View file

@ -55,7 +55,7 @@ class BackboneInterface(Interface):
@staticmethod
def get_address_for_if(name, bind_port, prefer_ipv6=False):
from RNS.vendor import netinfo
from RNS.Interfaces 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")