mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-10-24 20:00:01 +00:00
~现在当禁用自启校验时,也会同步禁用启动后的网络检查
This commit is contained in:
+15
-10
@@ -1,10 +1,15 @@
|
|||||||
i=1
|
if [ "$network_check" = "OFF" ]; then
|
||||||
while [ -z "$test" -a "$i" -lt 30 ]; do
|
#复用网络检查开关:禁用自启网络检查时,也跳过启动后的面板端口校验
|
||||||
sleep 1
|
test=skip
|
||||||
if curl --version >/dev/null 2>&1; then
|
else
|
||||||
test=$(curl -s -H "Authorization: Bearer $secret" http://127.0.0.1:${db_port}/proxies | grep -o proxies)
|
i=1
|
||||||
else
|
while [ -z "$test" ] && [ "$i" -lt 30 ]; do
|
||||||
test=$(wget -q --header="Authorization: Bearer $secret" -O - http://127.0.0.1:${db_port}/proxies | grep -o proxies)
|
sleep 1
|
||||||
fi
|
if curl --version >/dev/null 2>&1; then
|
||||||
i=$((i + 1))
|
test=$(curl -s -H "Authorization: Bearer $secret" http://127.0.0.1:${db_port}/proxies | grep -o proxies)
|
||||||
done
|
else
|
||||||
|
test=$(wget -q --header="Authorization: Bearer $secret" -O - http://127.0.0.1:${db_port}/proxies | grep -o proxies)
|
||||||
|
fi
|
||||||
|
i=$((i + 1))
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user