~修复偶发的启动报错

This commit is contained in:
juewuy 2024-04-13 21:02:33 +08:00
parent c5b577593f
commit 09cb52f8e0

View File

@ -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" ] && {