mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
list.nethub.fi was closed. dirty hack enable
This commit is contained in:
parent
d6c272ce25
commit
cbb268ddc8
@ -7,6 +7,11 @@ IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
|
||||
|
||||
|
||||
TMPLIST="$TMPDIR/list_nethub.txt"
|
||||
|
||||
# free domain was discontinued
|
||||
HOST=list.nethub.fi
|
||||
IP=69.197.166.36
|
||||
RESOLVE="--resolve $HOST:80:$IP"
|
||||
URL4="http://list.nethub.fi/reestr_resolved4.txt"
|
||||
URL6="http://list.nethub.fi/reestr_resolved6.txt"
|
||||
|
||||
@ -15,7 +20,7 @@ dl()
|
||||
{
|
||||
# $1 - url
|
||||
# $2 - file
|
||||
curl -H "Accept-Encoding: gzip" -k --fail --max-time 180 --connect-timeout 10 --retry 4 --max-filesize 33554432 "$1" | gunzip - >"$TMPLIST" ||
|
||||
curl -H "Accept-Encoding: gzip" $RESOLVE -k --fail --max-time 180 --connect-timeout 10 --retry 4 --max-filesize 33554432 "$1" | gunzip - >"$TMPLIST" ||
|
||||
{
|
||||
echo list download failed : $1
|
||||
exit 2
|
||||
|
@ -7,6 +7,11 @@ IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
|
||||
|
||||
|
||||
TMPLIST="$TMPDIR/list_nethub.txt"
|
||||
|
||||
# free domain was discontinued
|
||||
HOST=list.nethub.fi
|
||||
IP=69.197.166.36
|
||||
RESOLVE="--resolve $HOST:80:$IP"
|
||||
URL4="http://list.nethub.fi/reestr_smart4.txt"
|
||||
URL6="http://list.nethub.fi/reestr_smart6.txt"
|
||||
|
||||
@ -15,7 +20,7 @@ dl()
|
||||
{
|
||||
# $1 - url
|
||||
# $2 - file
|
||||
curl -H "Accept-Encoding: gzip" -k --fail --max-time 180 --connect-timeout 10 --retry 4 --max-filesize 33554432 "$1" | gunzip - >"$TMPLIST" ||
|
||||
curl -H "Accept-Encoding: gzip" $RESOLVE -k --fail --max-time 180 --connect-timeout 10 --retry 4 --max-filesize 33554432 "$1" | gunzip - >"$TMPLIST" ||
|
||||
{
|
||||
echo list download failed : $1
|
||||
exit 2
|
||||
|
@ -6,13 +6,18 @@ IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
|
||||
. "$IPSET_DIR/def.sh"
|
||||
|
||||
TMPLIST="$TMPDIR/list_nethub.txt"
|
||||
|
||||
# free domain was discontinued
|
||||
HOST=list.nethub.fi
|
||||
IP=69.197.166.36
|
||||
RESOLVE="--resolve $HOST:80:$IP"
|
||||
URL="http://list.nethub.fi/reestr_hostname_resolvable.txt"
|
||||
|
||||
dl()
|
||||
{
|
||||
# $1 - url
|
||||
# $2 - file
|
||||
curl -H "Accept-Encoding: gzip" -k --fail --max-time 180 --connect-timeout 10 --retry 4 --max-filesize 33554432 "$1" | gunzip - >"$TMPLIST" ||
|
||||
curl -H "Accept-Encoding: gzip" $RESOLVE -k --fail --max-time 180 --connect-timeout 10 --retry 4 --max-filesize 33554432 "$1" | gunzip - >"$TMPLIST" ||
|
||||
{
|
||||
echo list download failed : $1
|
||||
exit 2
|
||||
|
Loading…
Reference in New Issue
Block a user