yunomdns: disable ipv6 for now + remove debug stuff

This commit is contained in:
Alexandre Aubin 2021-09-29 20:10:00 +02:00
parent a5e1d7e318
commit 391de52ff2

View file

@ -113,15 +113,17 @@ def main() -> bool:
print(f"Interface {interface} listed in config file is not present on system.")
continue
ips: List[str] = interfaces[interface]["ipv4"] + interfaces[interface]["ipv6"]
# Only broadcast IPv4 because IPv6 is buggy ... because we ain't using python3-ifaddr >= 0.1.7
# Buster only ships 0.1.6
# Bullseye ships 0.1.7
# To be re-enabled once we're on bullseye...
# ips: List[str] = interfaces[interface]["ipv4"] + interfaces[interface]["ipv6"]
ips: List[str] = interfaces[interface]["ipv4"]
# If at least one IP is listed
if not ips:
continue
print(f"Publishing on {interface} ...")
print(ips)
# Create a Zeroconf object, and store the ServiceInfos
zc = Zeroconf(interfaces=ips) # type: ignore
zcs[zc] = []