From 0a9ffc87ea39f359e895a0bd63e916a10516a9eb Mon Sep 17 00:00:00 2001 From: bolvan Date: Wed, 17 Apr 2019 21:05:20 +0300 Subject: [PATCH] increase curl limits --- ipset/get_antizapret.sh | 2 +- ipset/get_combined.sh | 4 ++-- ipset/get_hostlist.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ipset/get_antizapret.sh b/ipset/get_antizapret.sh index a41c36b..db4e1ed 100755 --- a/ipset/get_antizapret.sh +++ b/ipset/get_antizapret.sh @@ -12,7 +12,7 @@ ZIPLISTTMP=$TMPDIR/zapret-ip.txt 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 ' ') if test $dlsize -lt 204800; then diff --git a/ipset/get_combined.sh b/ipset/get_combined.sh index 1e6c0e3..9a52768 100755 --- a/ipset/get_combined.sh +++ b/ipset/get_combined.sh @@ -15,7 +15,7 @@ ZURL_AZ=http://antizapret.prostovpn.org/iplist.txt getuser # 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 exit 2 @@ -34,7 +34,7 @@ fi 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 exit 2 diff --git a/ipset/get_hostlist.sh b/ipset/get_hostlist.sh index d165dca..9ba11d1 100755 --- a/ipset/get_hostlist.sh +++ b/ipset/get_hostlist.sh @@ -10,7 +10,7 @@ ZREESTR=$TMPDIR/zapret.txt #ZURL=https://reestr.rublacklist.net/api/current 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 exit 2