From 916f0cd838036b522bb3d8fe9dec05a10a95b1be Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 11 Dec 2022 09:58:04 +0300 Subject: [PATCH] get_reestr: download compressed from github --- ipset/get_reestr_hostlist.sh | 2 +- ipset/get_reestr_resolve.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipset/get_reestr_hostlist.sh b/ipset/get_reestr_hostlist.sh index 7b6ab22..f0883e1 100755 --- a/ipset/get_reestr_hostlist.sh +++ b/ipset/get_reestr_hostlist.sh @@ -13,7 +13,7 @@ getipban || FAIL=1 ZREESTR="$TMPDIR/zapret.txt" #ZURL=https://reestr.rublacklist.net/api/current -ZURL=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv +ZURL_REESTR=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv curl -H "Accept-Encoding: gzip" -k --fail --max-time 600 --connect-timeout 5 --retry 3 --max-filesize 251658240 "$ZURL_REESTR" | gunzip - >"$ZREESTR" || { diff --git a/ipset/get_reestr_resolve.sh b/ipset/get_reestr_resolve.sh index cffa1b2..59bad01 100755 --- a/ipset/get_reestr_resolve.sh +++ b/ipset/get_reestr_resolve.sh @@ -9,7 +9,7 @@ ZREESTR="$TMPDIR/zapret.txt" ZDIG="$TMPDIR/zapret-dig.txt" ZIPLISTTMP="$TMPDIR/zapret-ip.txt" #ZURL=https://reestr.rublacklist.net/api/current -ZURL=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv +ZURL_REESTR=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv getuser && { # both disabled