From 96cf4a3af5d8255c8b29a6b2a0965edba69b3245 Mon Sep 17 00:00:00 2001 From: larsonzh Date: Tue, 13 Dec 2022 03:19:19 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.8=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release/lzrules/lzrules.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/release/lzrules/lzrules.sh b/release/lzrules/lzrules.sh index 71324f7..f33771d 100644 --- a/release/lzrules/lzrules.sh +++ b/release/lzrules/lzrules.sh @@ -464,6 +464,7 @@ get_ipv4_data_file_item_total() { retval="$( sed -e '/^[ \t]*[#]/d' -e 's/[#].*$//g' -e 's/[ \t][ \t]*/ /g' -e 's/^[ ]//' -e 's/[ ]$//' -e '/^[ ]*$/d' "${1}" 2> /dev/null \ | awk -v count="0" '$1 ~ /^([0-9]{1,3}[\.]){3}[0-9]{1,3}([\/][0-9]{1,2}){0,1}$/ \ && $1 !~ /[3-9][0-9][0-9]/ && $1 !~ /[2][6-9][0-9]/ && $1 !~ /[2][5][6-9]/ && $1 !~ /[\/][4-9][0-9]/ && $1 !~ /[\/][3][3-9]/ \ + && $1 != "0.0.0.0/0" \ && NF >= "1" {count++} END{print count}' )" } echo "${retval}"