Add wwan status
This commit is contained in:
parent
da6bc07af2
commit
4626fb0b80
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user