From 09cb52f8e02719b5bdd58e91af61fd7e955b2a00 Mon Sep 17 00:00:00 2001 From: juewuy Date: Sat, 13 Apr 2024 21:02:33 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BF=AE=E5=A4=8D=E5=81=B6=E5=8F=91=E7=9A=84?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index e56a0f1..600238e 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1391,7 +1391,7 @@ stop_firewall() { #还原防火墙配置 web_save() { #最小化保存面板节点选择 #使用get_save获取面板节点设置 get_save http://127.0.0.1:${db_port}/proxies | sed 's/:{/!/g' | awk -F '!' '{for(i=1;i<=NF;i++) print $i}' | grep -aE '"Selector"' | grep -aoE '"name":.*"now":".*",' >"$TMPDIR"/web_proxies - while read line; do + [ -s "$TMPDIR"/web_proxies ] && while read line; do def=$(echo $line | grep -oE '"all".*",' | awk -F "[:\"]" '{print $5}') now=$(echo $line | grep -oE '"now".*",' | awk -F "[:\"]" '{print $5}') [ "$def" != "$now" ] && {