mirror of
https://github.com/trailofbits/algo
synced 2024-11-12 01:10:35 +00:00
Enable timeouts. Fixes #581
This commit is contained in:
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…
Reference in New Issue
Block a user