From 2bef51ec5840970690f5541a686e28b020c50f03 Mon Sep 17 00:00:00 2001 From: caicaicai21 Date: Fri, 3 Jan 2020 10:25:38 +0800 Subject: [PATCH] luci-app-ssr-plus: optimize subscription process (#2673) --- .../root/usr/share/shadowsocksr/subscribe.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.sh b/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.sh index 4323a4689..6559f658f 100755 --- a/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.sh +++ b/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.sh @@ -211,6 +211,11 @@ do ssr_remarks="$ssr_host:$ssr_port"; 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}') if [ -z "$uci_name_tmp" ]; then # 判断当前服务器信息是否存在 uci_name_tmp=$(uci add $name servers)