Merge branch 'uklans:master' into master

This commit is contained in:
Jonathan Featherston 2024-07-29 13:36:09 -07:00 committed by GitHub
commit b48095172c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,5 @@
cdn1.epicgames.com cdn1.epicgames.com
cdn2.epicgames.com
cdn.unrealengine.com cdn.unrealengine.com
cdn1.unrealengine.com cdn1.unrealengine.com
cdn2.unrealengine.com cdn2.unrealengine.com
@ -9,3 +10,4 @@ download3.epicgames.com
download4.epicgames.com download4.epicgames.com
epicgames-download1.akamaized.net epicgames-download1.akamaized.net
fastly-download.epicgames.com fastly-download.epicgames.com
cloudflare.epicgamescdn.com

View File

@ -52,10 +52,12 @@ while read -r entry; do
fi fi
parsed=$(echo ${fileentry} | sed -e "s/^\*\.//") parsed=$(echo ${fileentry} | sed -e "s/^\*\.//")
for i in ${cacheip}; do for i in ${cacheip}; do
if grep -qx "address=/${parsed}/${i}" "${outputfile}"; then if ! grep -qx "address=/${parsed}/${i}" "${outputfile}"; then
continue echo "address=/${parsed}/${i}" >> "${outputfile}"
fi
if ! grep -qx "local=/${parsed}/" "${outputfile}"; then
echo "local=/${parsed}/" >> "${outputfile}"
fi fi
echo "address=/${parsed}/${i}" >> "${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})