increase curl limits

This commit is contained in:
bolvan 2019-04-17 21:05:20 +03:00
parent 38ab24da68
commit 0a9ffc87ea
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ ZIPLISTTMP=$TMPDIR/zapret-ip.txt
getuser getuser
curl --fail --max-time 120 --max-filesize 10485760 -k -L "$ZURL" | cut_local >$ZIPLISTTMP && curl --fail --max-time 150 --max-filesize 20971520 -k -L "$ZURL" | cut_local >$ZIPLISTTMP &&
{ {
dlsize=$(wc -c "$ZIPLISTTMP" | cut -f 1 -d ' ') dlsize=$(wc -c "$ZIPLISTTMP" | cut -f 1 -d ' ')
if test $dlsize -lt 204800; then if test $dlsize -lt 204800; then

View File

@ -15,7 +15,7 @@ ZURL_AZ=http://antizapret.prostovpn.org/iplist.txt
getuser getuser
# assume all https banned by ip # assume all https banned by ip
curl -k --fail --max-time 300 --max-filesize 41943040 "$ZURL_REESTR" -o $ZREESTR || curl -k --fail --max-time 300 --max-filesize 62914560 "$ZURL_REESTR" -o $ZREESTR ||
{ {
echo reestr list download failed echo reestr list download failed
exit 2 exit 2
@ -34,7 +34,7 @@ fi
rm -f $ZREESTR rm -f $ZREESTR
curl --fail --max-time 120 --max-filesize 10485760 -k -L "$ZURL_AZ" | cut_local >$ZAZ || curl --fail --max-time 150 --max-filesize 20971520 -k -L "$ZURL_AZ" | cut_local >$ZAZ ||
{ {
echo antizapret list download failed echo antizapret list download failed
exit 2 exit 2

View File

@ -10,7 +10,7 @@ ZREESTR=$TMPDIR/zapret.txt
#ZURL=https://reestr.rublacklist.net/api/current #ZURL=https://reestr.rublacklist.net/api/current
ZURL=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv ZURL=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv
curl -k --fail --max-time 300 --max-filesize 41943040 "$ZURL" >$ZREESTR || curl -k --fail --max-time 300 --max-filesize 62914560 "$ZURL" >$ZREESTR ||
{ {
echo reestr list download failed echo reestr list download failed
exit 2 exit 2