Add wwan status

This commit is contained in:
felixaime 2023-08-31 14:16:15 +02:00
parent da6bc07af2
commit 4626fb0b80

View File

@ -35,7 +35,7 @@ class Network(object):
ctx = { "internet": self.check_internet() } ctx = { "internet": self.check_internet() }
for iface in ni.interfaces(): for iface in ni.interfaces():
if iface != self.iface_in and iface.startswith(("wl", "en", "et")): if iface != self.iface_in and iface.startswith(("wl", "en", "et", "ww")):
addrs = ni.ifaddresses(iface) addrs = ni.ifaddresses(iface)
try: try:
ctx["ip_out"] = addrs[ni.AF_INET][0]["addr"] ctx["ip_out"] = addrs[ni.AF_INET][0]["addr"]