From: Andrew Lorimer Date: Tue, 11 Dec 2018 06:48:17 +0000 (+1100) Subject: use wget instead of curl for https X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/b30331a29a09b2e0c975382850fea0a44a6ab17f?ds=inline;hp=--cc use wget instead of curl for https --- b30331a29a09b2e0c975382850fea0a44a6ab17f diff --git a/update-blocklist.sh b/update-blocklist.sh index 97c9031..2c12070 100644 --- a/update-blocklist.sh +++ b/update-blocklist.sh @@ -5,6 +5,6 @@ set -e blacklist=https://v.firebog.net/hosts/Easylist.txt mkdir -p /tmp/dnsmasq-blocklist -curl -s --max-filesize 20M -o /tmp/dnsmasq-blocklist/ads $blacklist +wget --cut-dirs=100 -np -nH -O /tmp/dnsmasq-blocklist/ads $blacklist sed -i -e 's/^/0.0.0.0 /' /tmp/dnsmasq-blocklist/ads /etc/init.d/dnsmasq restart