mirror of
https://github.com/uklans/cache-domains
synced 2025-06-19 07:52:56 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
e1fd11106a
@ -1,5 +1,10 @@
|
|||||||
epicgames-download1.akamaized.net
|
cdn1.epicgames.com
|
||||||
|
cdn.unrealengine.com
|
||||||
|
cdn1.unrealengine.com
|
||||||
|
cdn2.unrealengine.com
|
||||||
|
cdn3.unrealengine.com
|
||||||
download.epicgames.com
|
download.epicgames.com
|
||||||
download2.epicgames.com
|
download2.epicgames.com
|
||||||
download3.epicgames.com
|
download3.epicgames.com
|
||||||
download4.epicgames.com
|
download4.epicgames.com
|
||||||
|
epicgames-download1.akamaized.net
|
||||||
|
@ -27,6 +27,7 @@ done <<< $(jq -r '.cache_domains | to_entries[] | .key' config.json)
|
|||||||
|
|
||||||
rm -rf ${outputdir}
|
rm -rf ${outputdir}
|
||||||
mkdir -p ${outputdir}
|
mkdir -p ${outputdir}
|
||||||
|
touch ${outputdir}/lancache.conf
|
||||||
while read -r entry; do
|
while read -r entry; do
|
||||||
unset cacheip
|
unset cacheip
|
||||||
unset cachename
|
unset cachename
|
||||||
@ -42,8 +43,9 @@ while read -r entry; do
|
|||||||
cacheip=$(jq -r 'if type == "array" then .[] else . end' <<< ${!cacheipname} | xargs)
|
cacheip=$(jq -r 'if type == "array" then .[] else . end' <<< ${!cacheipname} | xargs)
|
||||||
while read -r fileid; do
|
while read -r fileid; do
|
||||||
while read -r filename; do
|
while read -r filename; do
|
||||||
destfilename=$(echo $filename | sed -e 's/txt/conf/')
|
destfilename=$(echo $filename | sed -e 's/txt/hosts/')
|
||||||
outputfile=${outputdir}/${destfilename}
|
outputfile=${outputdir}/${destfilename}
|
||||||
|
echo "addn-hosts=/etc/dnsmasq.d/${destfilename}" >> ${outputdir}/lancache.conf
|
||||||
touch "$outputfile"
|
touch "$outputfile"
|
||||||
while read -r fileentry; do
|
while read -r fileentry; do
|
||||||
# Ignore comments
|
# Ignore comments
|
||||||
@ -55,7 +57,7 @@ while read -r entry; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
for i in ${cacheip}; do
|
for i in ${cacheip}; do
|
||||||
echo "address=/${parsed}/${i}" >> "$outputfile"
|
echo "${i} ${parsed}" >> "$outputfile"
|
||||||
done
|
done
|
||||||
done <<< $(cat ${basedir}/$filename);
|
done <<< $(cat ${basedir}/$filename);
|
||||||
done <<< $(jq -r ".cache_domains[$entry].domain_files[$fileid]" $path)
|
done <<< $(jq -r ".cache_domains[$entry].domain_files[$fileid]" $path)
|
||||||
|
@ -6,3 +6,4 @@ xboxone.loris.llnwd.net
|
|||||||
xboxone.vo.llnwd.net
|
xboxone.vo.llnwd.net
|
||||||
xbox-mbr.xboxlive.com
|
xbox-mbr.xboxlive.com
|
||||||
assets1.xboxlive.com.nsatc.net
|
assets1.xboxlive.com.nsatc.net
|
||||||
|
xvcf1.xboxlive.com
|
||||||
|
Loading…
Reference in New Issue
Block a user