Update serv00.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-03-21 13:07:24 +08:00
committed by GitHub
parent 9b5d57c3ea
commit 2247cdb822
+1 -2
View File
@@ -1552,8 +1552,7 @@ argosl=$(cat "$WORKDIR/boot.log" 2>/dev/null | grep -a trycloudflare.com | awk '
checkhttp=$(curl -o /dev/null -s -w "%{http_code}\n" "https://$argosl") checkhttp=$(curl -o /dev/null -s -w "%{http_code}\n" "https://$argosl")
[ "$checkhttp" -eq 404 ] && check="域名有效" || check="域名无效" [ "$checkhttp" -eq 404 ] && check="域名有效" || check="域名无效"
green "Argo临时域名:$argosl $check" green "Argo临时域名:$argosl $check"
fi else
if [ ! -f "$WORKDIR/boot.log" ]; then
argogd=$(cat $WORKDIR/ARGO_DOMAIN.log 2>/dev/null) argogd=$(cat $WORKDIR/ARGO_DOMAIN.log 2>/dev/null)
checkhttp=$(curl --max-time 2 -o /dev/null -s -w "%{http_code}\n" "https://$argogd") checkhttp=$(curl --max-time 2 -o /dev/null -s -w "%{http_code}\n" "https://$argogd")
[ "$checkhttp" -eq 404 ] && check="域名有效" || check="域名无效" [ "$checkhttp" -eq 404 ] && check="域名有效" || check="域名无效"