mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 05:22:58 +03:00
reestr moved to https
This commit is contained in:
parent
4f14b1adf1
commit
2f7bfced74
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user