Browse Source

increase curl limits

pull/31/head
bolvan 6 years ago
parent
commit
0a9ffc87ea
  1. 2
      ipset/get_antizapret.sh
  2. 4
      ipset/get_combined.sh
  3. 2
      ipset/get_hostlist.sh

2
ipset/get_antizapret.sh

@ -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

4
ipset/get_combined.sh

@ -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

2
ipset/get_hostlist.sh

@ -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

Loading…
Cancel
Save