mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
yunomdns: disable ipv6 for now + remove debug stuff
This commit is contained in:
parent
a5e1d7e318
commit
391de52ff2
1 changed files with 6 additions and 4 deletions
10
bin/yunomdns
10
bin/yunomdns
|
@ -113,15 +113,17 @@ def main() -> bool:
|
||||||
print(f"Interface {interface} listed in config file is not present on system.")
|
print(f"Interface {interface} listed in config file is not present on system.")
|
||||||
continue
|
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 at least one IP is listed
|
||||||
if not ips:
|
if not ips:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print(f"Publishing on {interface} ...")
|
|
||||||
print(ips)
|
|
||||||
|
|
||||||
# Create a Zeroconf object, and store the ServiceInfos
|
# Create a Zeroconf object, and store the ServiceInfos
|
||||||
zc = Zeroconf(interfaces=ips) # type: ignore
|
zc = Zeroconf(interfaces=ips) # type: ignore
|
||||||
zcs[zc] = []
|
zcs[zc] = []
|
||||||
|
|
Loading…
Add table
Reference in a new issue