mirror of
https://github.com/bol-van/zapret.git
synced 2025-12-31 11:55:55 +03:00
ipset: github disabled gzip support
This commit is contained in:
@@ -19,7 +19,7 @@ dl()
|
||||
# $2 - file
|
||||
# $3 - minsize
|
||||
# $4 - maxsize
|
||||
curl -H "Accept-Encoding: gzip" -k --fail --max-time 120 --connect-timeout 10 --retry 4 --max-filesize $4 "$1" | gunzip - >"$TMPLIST" ||
|
||||
curl -H "Accept-Encoding: gzip" -k --fail --max-time 120 --connect-timeout 10 --retry 4 --max-filesize $4 -o "$TMPLIST" "$1" ||
|
||||
{
|
||||
echo list download failed : $1
|
||||
exit 2
|
||||
@@ -29,7 +29,7 @@ dl()
|
||||
echo list is too small : $dlsize bytes. can be bad.
|
||||
exit 2
|
||||
fi
|
||||
zz "$2" <"$TMPLIST"
|
||||
zzcat "$TMPLIST" | zz "$2"
|
||||
rm -f "$TMPLIST"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user