|
|
@ -21,7 +21,7 @@ dl_checked() |
|
|
|
echo list download failed : $1 |
|
|
|
return 2 |
|
|
|
} |
|
|
|
dlsize=$(LANG=C wc -c "$2" | xargs | cut -f 1 -d ' ') |
|
|
|
dlsize=$(LC_ALL=C LANG=C wc -c "$2" | xargs | cut -f 1 -d ' ') |
|
|
|
if test $dlsize -lt $3; then |
|
|
|
echo list is too small : $dlsize bytes. can be bad. |
|
|
|
return 2 |
|
|
@ -31,11 +31,11 @@ dl_checked() |
|
|
|
|
|
|
|
reestr_list() |
|
|
|
{ |
|
|
|
LANG=C gunzip -c "$ZREESTR" | cut -s -f2 -d';' | LANG=C nice -n 5 sed -Ee 's/^\*\.(.+)$/\1/' -ne 's/^[a-z0-9A-Z._-]+$/&/p' | $AWK '{ print tolower($0) }' |
|
|
|
LC_ALL=C LANG=C gunzip -c "$ZREESTR" | cut -s -f2 -d';' | LC_ALL=C LANG=C nice -n 5 sed -Ee 's/^\*\.(.+)$/\1/' -ne 's/^[a-z0-9A-Z._-]+$/&/p' | $AWK '{ print tolower($0) }' |
|
|
|
} |
|
|
|
reestr_extract_ip() |
|
|
|
{ |
|
|
|
LANG=C gunzip -c | nice -n 5 $AWK -F ';' '($1 ~ /^([0-9]{1,3}\.){3}[0-9]{1,3}/) && (($2 == "" && $3 == "") || ($1 == $2)) {gsub(/ \| /, RS); print $1}' | LANG=C $AWK '{split($1, a, /\|/); for (i in a) {print a[i]}}' |
|
|
|
LC_ALL=C LANG=C gunzip -c | nice -n 5 $AWK -F ';' '($1 ~ /^([0-9]{1,3}\.){3}[0-9]{1,3}/) && (($2 == "" && $3 == "") || ($1 == $2)) {gsub(/ \| /, RS); print $1}' | LC_ALL=C LANG=C $AWK '{split($1, a, /\|/); for (i in a) {print a[i]}}' |
|
|
|
} |
|
|
|
|
|
|
|
ipban_fin() |
|
|
|