Enable timeouts. Fixes #581

pull/583/head
Jack Ivanov 7 years ago
parent 26c202ded5
commit a8ebb16437

@ -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

Loading…
Cancel
Save