~现在当禁用自启校验时,也会同步禁用启动后的网络检查

This commit is contained in:
juewuy
2026-10-24 18:16:45 +08:00
parent 0c0de44aea
commit b26505d258
+8 -3
View File
@@ -1,5 +1,9 @@
i=1 if [ "$network_check" = "OFF" ]; then
while [ -z "$test" -a "$i" -lt 30 ]; do #复用网络检查开关:禁用自启网络检查时,也跳过启动后的面板端口校验
test=skip
else
i=1
while [ -z "$test" ] && [ "$i" -lt 30 ]; do
sleep 1 sleep 1
if curl --version >/dev/null 2>&1; then if curl --version >/dev/null 2>&1; then
test=$(curl -s -H "Authorization: Bearer $secret" http://127.0.0.1:${db_port}/proxies | grep -o proxies) test=$(curl -s -H "Authorization: Bearer $secret" http://127.0.0.1:${db_port}/proxies | grep -o proxies)
@@ -7,4 +11,5 @@ while [ -z "$test" -a "$i" -lt 30 ]; do
test=$(wget -q --header="Authorization: Bearer $secret" -O - http://127.0.0.1:${db_port}/proxies | grep -o proxies) test=$(wget -q --header="Authorization: Bearer $secret" -O - http://127.0.0.1:${db_port}/proxies | grep -o proxies)
fi fi
i=$((i + 1)) i=$((i + 1))
done done
fi