Browse Source

ipset: get_antizapret_domains use gzip in http query

pull/98/head
bol-van 3 years ago
parent
commit
38dca7da70
  1. 2
      ipset/get_antizapret_domains.sh

2
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

Loading…
Cancel
Save