mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-10 07:52:57 -04:00
Cleanup
This commit is contained in:
parent
c07e968218
commit
c83043b087
6 changed files with 6 additions and 6 deletions
|
@ -35,13 +35,13 @@ class UDPInterface(Interface):
|
|||
|
||||
@staticmethod
|
||||
def get_address_for_if(name):
|
||||
from RNS.vendor import netinfo
|
||||
from RNS.Interfaces import netinfo
|
||||
ifaddr = netinfo.ifaddresses(name)
|
||||
return ifaddr[netinfo.AF_INET][0]["addr"]
|
||||
|
||||
@staticmethod
|
||||
def get_broadcast_for_if(name):
|
||||
from RNS.vendor import netinfo
|
||||
from RNS.Interfaces import netinfo
|
||||
ifaddr = netinfo.ifaddresses(name)
|
||||
return ifaddr[netinfo.AF_INET][0]["broadcast"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue