From 9efe6a473dff46418b7c60b2e799ab9867e3e122 Mon Sep 17 00:00:00 2001 From: bolvan Date: Mon, 7 Nov 2016 18:18:55 +0300 Subject: [PATCH] increased curl max time from 60 to 300 sec --- ipset/get_antizapret.sh | 2 +- ipset/get_reestr.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipset/get_antizapret.sh b/ipset/get_antizapret.sh index 3d3ff8a..f3b5f80 100755 --- a/ipset/get_antizapret.sh +++ b/ipset/get_antizapret.sh @@ -11,7 +11,7 @@ ZIPLISTTMP=/tmp/zapret-ip.txt getuser -curl --fail --max-time 60 --max-filesize 33554432 -k -L "$ZURL" | \ +curl --fail --max-time 300 --max-filesize 33554432 -k -L "$ZURL" | \ sed -nre "s/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})/\1\n/gp" | \ sed -nre "s/^[^0-9]*([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$/\1/p" | \ grep -vE '^192.168.[0-9]*.[0-9]*$' | grep -vE '^127.[0-9]*.[0-9]*.[0-9]*$' | grep -vE '^10.[0-9]*.[0-9]*.[0-9]*$' \ diff --git a/ipset/get_reestr.sh b/ipset/get_reestr.sh index ef332e7..7183747 100755 --- a/ipset/get_reestr.sh +++ b/ipset/get_reestr.sh @@ -13,7 +13,7 @@ ZURL=http://reestr.rublacklist.net/api/current getuser -curl --fail --max-time 60 --max-filesize 20971520 "$ZURL" >$ZREESTR && { +curl --fail --max-time 300 --max-filesize 20971520 "$ZURL" >$ZREESTR && { dlsize=$(wc -c "$ZREESTR" | cut -f 1 -d ' ') if test $dlsize -lt 204800; then echo list file is too small. can be bad.