mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-29 03:31:48 -04:00
Cleanup
This commit is contained in:
parent
c07e968218
commit
c83043b087
6 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):
|
||||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue