Skip to content

Commit

Permalink
v1.0.3新增用户自定义IPv4目标访问网址/网段数据集合列表文件功能
Browse files Browse the repository at this point in the history
  • Loading branch information
larsonzh committed Nov 2, 2022
1 parent c418b48 commit 7eedddd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release/lzrules/lzrules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ get_ipset_total() {
get_dname_item_total() {
local retval="$( echo "${2}" | awk -v flag1=0 -v flag2=0 -v count=0 \
'/^config ipset/ {if (count > 0) exit; else {flag1=1; flag2=0; next}}\
/^config/ {if (count > 0) exit; else {flag1=0; next}} flag1 && $0 ~ "'"^list name \'${1}\'"'" {flag2=1; next} \
/^config/ {if (count > 0) exit; else {flag1=0; next}} \
flag1 && $0 ~ "'"^list name \'${1}\'"'" {flag2=1; next} \
flag2 && /^list domain/ {count++; next} END{print count}' )"
echo "${retval}"
}
Expand Down

0 comments on commit 7eedddd

Please sign in to comment.