plugin.audio.librespot/resources/lib/deps/ifaddr/netifaces.py
2024-02-21 01:17:59 -05:00

10 lines
205 B
Python

# netifaces compatibility layer
import ifaddr
from typing import List
def interfaces() -> List[str]:
adapters = ifaddr.get_adapters(include_unconfigured=True)
return [a.name for a in adapters]