ipset: get_antizapret_domains use gzip in http query

This commit is contained in:
bol-van 2022-03-19 12:44:47 +03:00
parent 0d07831e1e
commit 38dca7da70

View File

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