1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Add domains needed for amazonvideo bypass

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-06-04 19:58:55 +02:00
parent ac1054f079
commit 60fa1ac259

View file

@ -110,6 +110,14 @@ if [ "$(uci -q get omr-bypass.disneyplus)" = "" ]; then
commit omr-bypass
EOF
fi
if [ "$(uci -q get omr-bypass.amazonvideo)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set omr-bypass.amazonvideo=proto
add_list omr-bypass.amazonvideo.url='cloudfront.net'
add_list omr-bypass.amazonvideo.url='llnw.net'
commit omr-bypass
EOF
fi
if [ ! -f /etc/crontabs/root ] || [ "$(cat /etc/crontabs/root | grep bypass)" = "" ]; then
echo "0 2 * * * /etc/init.d/omr-bypass bypass_asn" >> /etc/crontabs/root
fi