mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-01 06:17:07 +08:00
luci-app-ssr-plus: optimize subscription process (#2673)
This commit is contained in:
parent
3ffefbc75d
commit
2bef51ec58
@ -211,6 +211,11 @@ do
|
|||||||
ssr_remarks="$ssr_host:$ssr_port";
|
ssr_remarks="$ssr_host:$ssr_port";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$ssr_host" ];then # 丢弃没有host的无效服务器信息,例如:剩余流量xxx
|
||||||
|
echo_date "丢弃无效节点:【$ssr_remarks】"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
uci_name_tmp=$(uci show $name | grep -w "$ssr_hashkey" | awk -F . '{print $2}')
|
uci_name_tmp=$(uci show $name | grep -w "$ssr_hashkey" | awk -F . '{print $2}')
|
||||||
if [ -z "$uci_name_tmp" ]; then # 判断当前服务器信息是否存在
|
if [ -z "$uci_name_tmp" ]; then # 判断当前服务器信息是否存在
|
||||||
uci_name_tmp=$(uci add $name servers)
|
uci_name_tmp=$(uci add $name servers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user