mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-10-24 20:00:01 +00:00
~现在当禁用自启校验时,也会同步禁用启动后的网络检查
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
if [ "$network_check" = "OFF" ]; then
|
||||
#复用网络检查开关:禁用自启网络检查时,也跳过启动后的面板端口校验
|
||||
test=skip
|
||||
else
|
||||
i=1
|
||||
while [ -z "$test" -a "$i" -lt 30 ]; do
|
||||
while [ -z "$test" ] && [ "$i" -lt 30 ]; do
|
||||
sleep 1
|
||||
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)
|
||||
@@ -8,3 +12,4 @@ while [ -z "$test" -a "$i" -lt 30 ]; do
|
||||
fi
|
||||
i=$((i + 1))
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user