Skip to content

Commit

Permalink
v4.4.5
Browse files Browse the repository at this point in the history
1.优化代码。
2.更新运营商 IP 地址数据文件。
  • Loading branch information
larsonzh committed Jun 25, 2024
1 parent 6a173af commit d313bac
Show file tree
Hide file tree
Showing 18 changed files with 59 additions and 38 deletions.
4 changes: 2 additions & 2 deletions source_codes/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# install.sh v4.4.4
# install.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

# LZ RULE script for Asuswrt-Merlin Router
Expand All @@ -11,7 +11,7 @@

#BEGIN

LZ_VERSION=v4.4.4
LZ_VERSION=v4.4.5
TIMEOUT=10
CURRENT_PATH="${0%/*}"
[ "${CURRENT_PATH:0:1}" != '/' ] && CURRENT_PATH="$( pwd )${CURRENT_PATH#*.}"
Expand Down
4 changes: 4 additions & 0 deletions source_codes/lz/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v4.4.5 (2024/6/25)
1.优化代码。
2.更新运营商 IP 地址数据文件。

v4.4.4 (2024/6/12)
1.优化代码。
2.更新运营商 IP 地址数据文件。
Expand Down
2 changes: 1 addition & 1 deletion source_codes/lz/configs/lz_rule_config.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_rule_config.sh v4.4.4
# lz_rule_config.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

# 本软件采用CIDR(无类别域间路由,Classless Inter-Domain Routing)技术,是一个在Internet上创建附加地
Expand Down
4 changes: 4 additions & 0 deletions source_codes/lz/data/lz_all_cn_cidr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3738,6 +3738,10 @@
160.20.130.0/23
160.22.58.0/23
160.22.82.0/23
160.22.148.0/23
160.22.188.0/23
160.22.224.0/23
160.22.230.0/23
160.202.60.0/22
160.202.148.0/22
160.202.152.0/22
Expand Down
10 changes: 6 additions & 4 deletions source_codes/lz/data/lz_hk_cidr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@
103.102.32.0/22
103.103.64.0/23
103.103.68.0/22
103.103.168.0/22
103.103.176.0/22
103.103.244.0/22
103.104.11.0/24
Expand Down Expand Up @@ -1498,7 +1499,6 @@
117.18.119.0/24
117.18.120.0/23
117.18.122.0/24
117.18.124.0/22
117.18.224.0/22
117.20.42.0/23
117.20.44.0/22
Expand Down Expand Up @@ -1674,6 +1674,8 @@
160.20.52.0/22
160.20.56.0/21
160.22.48.0/23
160.22.184.0/23
160.22.213.0/24
160.202.44.0/22
160.202.56.0/22
160.238.84.0/22
Expand Down Expand Up @@ -2040,13 +2042,13 @@
202.181.24.0/22
202.181.136.0/23
202.181.138.0/24
202.181.140.0/22
202.181.140.0/23
202.181.142.0/24
202.181.144.0/22
202.181.149.0/24
202.181.150.0/23
202.181.150.0/24
202.181.152.0/24
202.181.154.0/23
202.181.156.0/22
202.181.160.0/20
202.181.176.0/24
202.181.178.0/23
Expand Down
4 changes: 4 additions & 0 deletions source_codes/lz/data/lz_othernet_cidr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,10 @@
160.20.130.0/23
160.22.58.0/23
160.22.82.0/23
160.22.148.0/23
160.22.188.0/23
160.22.224.0/23
160.22.230.0/23
160.202.168.0/22
160.202.216.0/21
160.202.224.0/19
Expand Down
4 changes: 2 additions & 2 deletions source_codes/lz/data/lz_tw_cidr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
103.46.188.0/22
103.51.88.0/22
103.51.140.0/22
103.59.220.0/22
103.59.220.0/23
103.61.136.0/22
103.64.20.0/22
103.67.72.0/23
Expand Down Expand Up @@ -149,7 +149,6 @@
103.104.148.0/22
103.106.52.0/22
103.112.48.0/22
103.113.240.0/22
103.115.108.0/23
103.116.14.0/23
103.116.68.0/22
Expand Down Expand Up @@ -634,6 +633,7 @@
203.211.0.0/19
203.217.96.0/19
203.222.0.0/19
206.127.144.0/20
209.35.96.0/23
209.35.114.0/23
209.35.156.0/23
Expand Down
2 changes: 1 addition & 1 deletion source_codes/lz/func/lz_clear_custom_scripts_data.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_clear_custom_scripts_data.sh v4.4.4
# lz_clear_custom_scripts_data.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

## 清除用户自定义脚本数据
Expand Down
2 changes: 1 addition & 1 deletion source_codes/lz/func/lz_define_global_variables.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_define_global_variables.sh v4.4.4
# lz_define_global_variables.sh v4.4.5
# By LZ 妙妙呜 ([email protected])
# QnkgTFog5aaZ5aaZ5ZGc77yI6Juk6J+G5aKp5YS/77yJ(首次运行标识,切勿修改)

Expand Down
39 changes: 23 additions & 16 deletions source_codes/lz/func/lz_initialize_config.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_initialize_config.sh v4.4.4
# lz_initialize_config.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

## 初始化脚本配置
Expand All @@ -24,16 +24,13 @@ lz_variable_initialize() {
dnsmasq_enable="0"
! dnsmasq -v 2> /dev/null | grep -w 'ipset' | grep -qvw 'no[\-]ipset' && dnsmasq_enable="1"
param_list=""
param_default_list=""
ini_param_default_list=""
}

## 卸载变量函数
## 输入项:无
## 返回值:无
lz_variable_uninitialize() {
eval "$( echo "${param_list}" | sed "s/^[[:alnum:]_][[:alnum:]_]*$/unset local_& local_ini_& local_&_changed local_&_flag/g" )"
unset param_list param_default_list ini_param_default_list
unset local_default local_changed local_reinstall dnsmasq_enable
}

Expand Down Expand Up @@ -142,14 +139,30 @@ lz_init_cfg_data() {
p
}" "${PATH_FUNC}/lz_initialize_config.sh" 2> /dev/null )"
eval "$( echo "${param_list}" | sed "s/^[[:alnum:]_][[:alnum:]_]*$/local_&=\"\${local_ini_&}\"/" )"
param_default_list="$( eval "$( echo "${param_list}" \
}

## 获取配置缺省参数列表函数
## 输入项:
## 全局变量
## 返回值:
## 配置缺省参数列表
lz_get_param_default_list() {
eval "$( echo "${param_list}" \
| sed -n "/^all_foreign_wan_port$/,/^custom_dualwan_scripts_filename$/{
s/^[[:alnum:]_][[:alnum:]_]*$/echo &=\"\${local_&}\"/;
p
}" )" | sed 's/\"//g' )"
ini_param_default_list="$( eval "$( echo "${param_list}" \
}" )" | sed 's/\"//g'
}

## 获取备份配置缺省参数列表函数
## 输入项:
## 全局变量
## 返回值:
## 备份配置缺省参数列表
lz_get_ini_param_default_list() {
eval "$( echo "${param_list}" \
| sed "s/^[[:alnum:]_][[:alnum:]_]*$/echo &=\"\${local_ini_&}\"/" )" \
| sed 's/\"//g' )"
| sed 's/\"//g'
}

## 修复丢失的配置参数函数
Expand Down Expand Up @@ -1099,10 +1112,7 @@ EOF_CFG
## 返回值:无
lz_get_config_data() {
local restore_cfg="0" original_length="-1" current_length="-1"
ini_param_default_list="$( eval "$( echo "${param_list}" \
| sed "s/^[[:alnum:]_][[:alnum:]_]*$/echo &=\"\${local_ini_&}\"/" )" \
| sed 's/\"//g' )"
eval "$( awk -F "=" -v param_default="${param_default_list}" -v ini_param_default="${ini_param_default_list}" -v dmq="${dnsmasq_enable}" -v fname="${PATH_CONFIGS}/lz_rule_config.sh" \
eval "$( awk -F "=" -v param_default="$( lz_get_param_default_list )" -v ini_param_default="$( lz_get_ini_param_default_list )" -v dmq="${dnsmasq_enable}" -v fname="${PATH_CONFIGS}/lz_rule_config.sh" \
'BEGIN{
x=0;
count=0;
Expand Down Expand Up @@ -1388,10 +1398,7 @@ lz_restore_box_data() {
## 全局常量及变量
## 返回值:无
lz_get_box_data() {
ini_param_default_list="$( eval "$( echo "${param_list}" \
| sed "s/^[[:alnum:]_][[:alnum:]_]*$/echo &=\"\${local_ini_&}\"/" )" \
| sed 's/\"//g' )"
eval "$( awk -F "=" -v ini_param_default="${ini_param_default_list}" -v dmq="${dnsmasq_enable}" -v fname="${PATH_CONFIGS}/lz_rule_config.box" \
eval "$( awk -F "=" -v ini_param_default="$( lz_get_ini_param_default_list )" -v dmq="${dnsmasq_enable}" -v fname="${PATH_CONFIGS}/lz_rule_config.box" \
'BEGIN{
count=0;
mark=0;
Expand Down
2 changes: 1 addition & 1 deletion source_codes/lz/func/lz_rule_address_query.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_rule_address_query.sh v4.4.4
# lz_rule_address_query.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

## 网址信息查询脚本
Expand Down
2 changes: 1 addition & 1 deletion source_codes/lz/func/lz_rule_func.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_rule_func.sh v4.4.4
# lz_rule_func.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

#BEGIN
Expand Down
2 changes: 1 addition & 1 deletion source_codes/lz/func/lz_rule_status.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_rule_status.sh v4.4.4
# lz_rule_status.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

## 显示脚本运行状态脚本
Expand Down
4 changes: 2 additions & 2 deletions source_codes/lz/func/lz_vpn_daemon.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_vpn_daemon.sh v4.4.4
# lz_vpn_daemon.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

## 虚拟专网客户端路由刷新处理后台守护进程脚本
Expand All @@ -10,7 +10,7 @@
#BEGIN

## 版本号
LZ_VERSION=v4.4.4
LZ_VERSION=v4.4.5

## 项目接口文件部署路径
PATH_INTERFACE="${0%/*}"
Expand Down
2 changes: 1 addition & 1 deletion source_codes/lz/interface/lz_rule_service.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_rule_service.sh v4.4.4
# lz_rule_service.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

## 服务接口脚本
Expand Down
2 changes: 1 addition & 1 deletion source_codes/lz/js/lz_policy_routing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
# lz_policy_routing.js v4.4.4
# lz_policy_routing.js v4.4.5
# By LZ 妙妙呜 ([email protected])
# LZ JavaScript for Asuswrt-Merlin Router
Expand Down
4 changes: 2 additions & 2 deletions source_codes/lz/lz_rule.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# lz_rule.sh v4.4.4
# lz_rule.sh v4.4.5
# By LZ 妙妙呜 ([email protected])

# 本软件采用CIDR(无类别域间路由,Classless Inter-Domain Routing)技术,是一个在Internet上创建附加地
Expand Down Expand Up @@ -80,7 +80,7 @@
## -------------全局数据定义及初始化-------------------

## 版本号
LZ_VERSION=v4.4.4
LZ_VERSION=v4.4.5

## 运行状态查询命令
SHOW_STATUS="status"
Expand Down
4 changes: 2 additions & 2 deletions source_codes/lz/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# uninstall.sh v4.4.4
# uninstall.sh v4.4.5
# By LZ ([email protected])

# LZ RULE script for Asuswrt-Merlin Router
Expand All @@ -8,7 +8,7 @@

#BEGIN

LZ_VERSION=v4.4.4
LZ_VERSION=v4.4.5
TIMEOUT=10
CURRENT_PATH="${0%/*}"
[ "${CURRENT_PATH:0:1}" != '/' ] && CURRENT_PATH="$( pwd )${CURRENT_PATH#*.}"
Expand Down

0 comments on commit d313bac

Please sign in to comment.