Updated to the latest version of 10-22-2024

Updataed all list and scripts/create-dnsmasq.sh
This commit is contained in:
2024-10-22 20:03:40 -05:00
parent f361bbd560
commit ba7a6aa849
4 changed files with 14 additions and 20 deletions

View File

@@ -52,10 +52,12 @@ while read -r entry; do
fi
parsed=$(echo ${fileentry} | sed -e "s/^\*\.//")
for i in ${cacheip}; do
if grep -qx "address=/${parsed}/${i}" "${outputfile}"; then
continue
if ! grep -qx "address=/${parsed}/${i}" "${outputfile}"; then
echo "address=/${parsed}/${i}" >> "${outputfile}"
fi
if ! grep -qx "local=/${parsed}/" "${outputfile}"; then
echo "local=/${parsed}/" >> "${outputfile}"
fi
echo "address=/${parsed}/${i}" >> "${outputfile}"
done
done <<< $(cat ${basedir}/${filename} | sort);
done <<< $(jq -r ".cache_domains[${entry}].domain_files[$fileid]" ${path})