diff --git a/ipset/get_combined.sh b/ipset/get_combined.sh index 36d2f8d..e4f49fd 100755 --- a/ipset/get_combined.sh +++ b/ipset/get_combined.sh @@ -7,14 +7,14 @@ EXEDIR=$(dirname $SCRIPT) . "$EXEDIR/def.sh" ZREESTR=$TMPDIR/reestr.txt -ZURL_REESTR=http://reestr.rublacklist.net/api/current +ZURL_REESTR=https://reestr.rublacklist.net/api/current ZAZ=$TMPDIR/zapret-ip.txt ZURL_AZ=http://antizapret.prostovpn.org/iplist.txt getuser # assume all https banned by ip -curl --fail --max-time 300 --max-filesize 41943040 "$ZURL_REESTR" -o $ZREESTR +curl -k --fail --max-time 300 --max-filesize 41943040 "$ZURL_REESTR" -o $ZREESTR dlsize=$(wc -c "$ZREESTR" | cut -f 1 -d ' ') if test $dlsize -lt 1048576; then echo reestr ip list is too small. can be bad. diff --git a/ipset/get_reestr.sh b/ipset/get_reestr.sh index b93c7b5..6077106 100755 --- a/ipset/get_reestr.sh +++ b/ipset/get_reestr.sh @@ -9,11 +9,11 @@ EXEDIR=$(dirname $SCRIPT) ZREESTR=$TMPDIR/zapret.txt ZDIG=$TMPDIR/zapret-dig.txt ZIPLISTTMP=$TMPDIR/zapret-ip.txt -ZURL=http://reestr.rublacklist.net/api/current +ZURL=https://reestr.rublacklist.net/api/current getuser -curl --fail --max-time 300 --max-filesize 41943040 "$ZURL" >$ZREESTR && { +curl -k --fail --max-time 300 --max-filesize 41943040 "$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.