mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
ipset: get_antizapret_domains use gzip in http query
This commit is contained in:
parent
0d07831e1e
commit
38dca7da70
@ -15,7 +15,7 @@ ZURL=https://antizapret.prostovpn.org/domains-export.txt
|
|||||||
ZDOM="$TMPDIR/zapret.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
|
echo domain list download failed
|
||||||
exit 2
|
exit 2
|
||||||
|
Loading…
Reference in New Issue
Block a user