From 38dca7da7099d49ec50d07e44b0a9fafe0fd3255 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 19 Mar 2022 12:44:47 +0300 Subject: [PATCH] ipset: get_antizapret_domains use gzip in http query --- ipset/get_antizapret_domains.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipset/get_antizapret_domains.sh b/ipset/get_antizapret_domains.sh index a6a3fd3..277e8fd 100755 --- a/ipset/get_antizapret_domains.sh +++ b/ipset/get_antizapret_domains.sh @@ -15,7 +15,7 @@ ZURL=https://antizapret.prostovpn.org/domains-export.txt ZDOM="$TMPDIR/zapret.txt" -curl -k --fail --max-time 600 --connect-timeout 5 --retry 3 --max-filesize 251658240 "$ZURL" >"$ZDOM" || +curl -H "Accept-Encoding: gzip" -k --fail --max-time 600 --connect-timeout 5 --retry 3 --max-filesize 251658240 "$ZURL" | gunzip - >"$ZDOM" || { echo domain list download failed exit 2