From b30331a29a09b2e0c975382850fea0a44a6ab17f Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Tue, 11 Dec 2018 17:48:17 +1100 Subject: [PATCH] use wget instead of curl for https --- update-blocklist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2