mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-25 16:43:36 +05:00
Merge 5625c795ba into aae9c50f10
This commit is contained in:
@@ -518,7 +518,12 @@ start () {
|
|||||||
EOF
|
EOF
|
||||||
cat << 'EOF' >> /etc/init.d/getdomains
|
cat << 'EOF' >> /etc/init.d/getdomains
|
||||||
count=0
|
count=0
|
||||||
|
maxCount=10
|
||||||
while true; do
|
while true; do
|
||||||
|
if [ ${count} -eq ${maxCount} ]; then
|
||||||
|
echo "Break on ${maxCount} attempt"
|
||||||
|
break
|
||||||
|
fi
|
||||||
if curl -m 3 github.com; then
|
if curl -m 3 github.com; then
|
||||||
curl -f $DOMAINS --output /tmp/dnsmasq.d/domains.lst
|
curl -f $DOMAINS --output /tmp/dnsmasq.d/domains.lst
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -22,7 +22,12 @@ start () {
|
|||||||
DOMAINS=https://raw.githubusercontent.com/itdoginfo/allow-domains/main/Ukraine/inside-dnsmasq-ipset.lst
|
DOMAINS=https://raw.githubusercontent.com/itdoginfo/allow-domains/main/Ukraine/inside-dnsmasq-ipset.lst
|
||||||
{% endif %}
|
{% endif %}
|
||||||
count=0
|
count=0
|
||||||
|
maxCount=10
|
||||||
while true; do
|
while true; do
|
||||||
|
if [ ${count} -eq ${maxCount} ]; then
|
||||||
|
echo "Break on ${maxCount} attempt"
|
||||||
|
break
|
||||||
|
fi
|
||||||
if curl -m 3 github.com; then
|
if curl -m 3 github.com; then
|
||||||
curl -f $DOMAINS --output /tmp/dnsmasq.d/domains.lst
|
curl -f $DOMAINS --output /tmp/dnsmasq.d/domains.lst
|
||||||
break
|
break
|
||||||
@@ -46,7 +51,12 @@ start () {
|
|||||||
mkdir -p $dir
|
mkdir -p $dir
|
||||||
|
|
||||||
count=0
|
count=0
|
||||||
|
maxCount=10
|
||||||
while true; do
|
while true; do
|
||||||
|
if [ ${count} -eq ${maxCount} ]; then
|
||||||
|
echo "Break on ${maxCount} attempt"
|
||||||
|
break
|
||||||
|
fi
|
||||||
if curl -m 3 https://antifilter.download/; then
|
if curl -m 3 https://antifilter.download/; then
|
||||||
{% if list_subnet %}
|
{% if list_subnet %}
|
||||||
curl -f -z $dir/subnet.lst https://antifilter.download/list/subnet.lst --output $dir/subnet.lst
|
curl -f -z $dir/subnet.lst https://antifilter.download/list/subnet.lst --output $dir/subnet.lst
|
||||||
|
|||||||
Reference in New Issue
Block a user