plugin.audio.librespot/resources/lib/deps/ifaddr/netifaces.py

11 lines
205 B
Python
Raw Normal View History

2024-02-21 06:17:59 +00:00
# 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]