fix: explicitly specify ipv4 addresses

This change fixes the AdGuard Home generation script by disabling the return of ipv6 addresses. This would have been causing issues for users who are running dual stack with the addresses that accept both ipv4 and ipv6 traffic.
This commit is contained in:
Amir Zarrinkafsh 2025-07-18 18:16:54 +10:00
parent 8d958802a5
commit 26a7b3d808
No known key found for this signature in database
GPG Key ID: ECDB8EF9E77E4EBF

View File

@ -59,7 +59,7 @@ while read entry; do
continue
fi
for i in ${cacheip}; do
echo "${domainprefix}${parsed}^\$dnsrewrite=${i}" >> ${outputfile}
echo "${domainprefix}${parsed}^\$dnsrewrite=${i},dnstype=A" >> ${outputfile}
done
done <<< $(cat ${basedir}/$filename | sort);
done <<< $(jq -r ".cache_domains[${entry}].domain_files[${fileid}]" ${path})