net_iplist module: show only non deprecated ipv6 addresses
@@ -78,7 +78,9 @@ class Py3status:
def post_config_hook(self):
self.iface_re = re.compile(r"\d+: (?P<iface>[\w\-]+):")
self.ip_re = re.compile(r"\s+inet (?P<ip4>[\d.]+)(?:/| )")
- self.ip6_re = re.compile(r"\s+inet6 (?P<ip6>[\da-f:]+)(?:/| )")
+ self.ip6_re = re.compile(
+ r"\s+inet6 (?P<ip6>[\da-f:]+)(?:/\d{1,3}| ) scope global dynamic"
+ )
def net_iplist(self):
response = {
