Enable timeouts. Fixes #581

This commit is contained in:
Jack Ivanov 2017-06-05 17:33:03 +02:00
parent 26c202ded5
commit a8ebb16437

View File

@ -18,7 +18,7 @@ rm -f $DNSMASQ_BLOCKHOSTS
echo 'Downloading hosts lists...'
#Download and process the files needed to make the lists (enable/add more, if you want)
for url in $BLOCKLIST_URLS; do
wget -qO- "$url" | awk -v r="$ENDPOINT_IP4" '{sub(/^(0.0.0.0|127.0.0.1)/, r)} $0 ~ "^"r' >> "$TEMP"
wget --timeout=2 --tries=3 -qO- "$url" | awk -v r="$ENDPOINT_IP4" '{sub(/^(0.0.0.0|127.0.0.1)/, r)} $0 ~ "^"r' >> "$TEMP"
done
#Add black list, if non-empty