mirror of
https://github.com/uklans/cache-domains
synced 2025-06-18 15:42:56 +02:00
Merge branch 'uklans:master' into master
This commit is contained in:
commit
b48095172c
@ -1,4 +1,5 @@
|
||||
cdn1.epicgames.com
|
||||
cdn2.epicgames.com
|
||||
cdn.unrealengine.com
|
||||
cdn1.unrealengine.com
|
||||
cdn2.unrealengine.com
|
||||
@ -9,3 +10,4 @@ download3.epicgames.com
|
||||
download4.epicgames.com
|
||||
epicgames-download1.akamaized.net
|
||||
fastly-download.epicgames.com
|
||||
cloudflare.epicgamescdn.com
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user