optional linklocal ipv6 support (firefox/ie11 only)

This commit is contained in:
ed 2022-12-05 20:45:21 +00:00
parent 9a28afcb48
commit 6cd6dadd06
4 changed files with 8 additions and 3 deletions

View file

@ -183,7 +183,9 @@ class MCast(object):
srv.ips[oth_ip.split("/")[0]] = ipaddress.ip_network(oth_ip, False)
# gvfs breaks if a linklocal ip appears in a dns reply
srv.ips = {k: v for k, v in srv.ips.items() if not k.startswith("fe80")}
if not self.args.ll:
srv.ips = {k: v for k, v in srv.ips.items() if not k.startswith("fe80")}
if not srv.ips:
self.log("no routable IPs on {}; skipping [{}]".format(netdev, ip), 3)
continue