mirror of
https://github.com/scifijunk/cache-domains.git
synced 2026-02-04 00:21:01 -06:00
fix: explicitly specify ipv4 addresses in adguard script (#265)
* 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. * fix: explicitly block returning on ipv6 queries
This commit is contained in:
@@ -60,6 +60,7 @@ while read entry; do
|
|||||||
fi
|
fi
|
||||||
for i in ${cacheip}; do
|
for i in ${cacheip}; do
|
||||||
echo "${domainprefix}${parsed}^\$dnsrewrite=${i}" >> ${outputfile}
|
echo "${domainprefix}${parsed}^\$dnsrewrite=${i}" >> ${outputfile}
|
||||||
|
echo "${domainprefix}${parsed}^\$dnstype=AAAA" >> ${outputfile}
|
||||||
done
|
done
|
||||||
done <<< $(cat ${basedir}/$filename | sort);
|
done <<< $(cat ${basedir}/$filename | sort);
|
||||||
done <<< $(jq -r ".cache_domains[${entry}].domain_files[${fileid}]" ${path})
|
done <<< $(jq -r ".cache_domains[${entry}].domain_files[${fileid}]" ${path})
|
||||||
|
|||||||
Reference in New Issue
Block a user