1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00

we can't use IPv6 LLA for DNS

This commit is contained in:
OniriCorpe 2023-12-31 04:17:54 +01:00
parent fab6dcce38
commit 2d8e14ae60

View file

@ -80,13 +80,17 @@ process_ips(){
for ip in $ips; do
# check if the so-called IP really is one
if ynh_validate_ip4 --ip_address="$ip" || ynh_validate_ip6 --ip_address="$ip"; then
# don't process if the IP is public and the port 53 closed
if is_public_ip "$ip" && [ "$open_port_53" == "false" ]; then
# don't add this IP (do nothing)
:
else
# add this IP and a space as IP delimiter
processed_ips+="$ip "
# we can't use IPv6 LLA for DNS: https://github.com/AdguardTeam/AdGuardHome/issues/2926#issuecomment-1284489380
# if we try to bind port 53 on a fe80:: address, AGH crashes
if ! [[ "$ip" =~ ^fe80:* ]]; then
# don't process if the IP is public and the port 53 closed
if is_public_ip "$ip" && [ "$open_port_53" == "false" ]; then
# don't add this IP (do nothing)
:
else
# add this IP and a space as IP delimiter
processed_ips+="$ip "
fi
fi
fi
done