From ce6fc1f7f146d4be45deb0eb233561bcd353a6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Mon, 24 Feb 2025 09:05:11 +0800 Subject: [PATCH] Update serv00.sh --- serv00.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serv00.sh b/serv00.sh index e49036f..a56ca5f 100644 --- a/serv00.sh +++ b/serv00.sh @@ -1372,7 +1372,8 @@ echo -e "检测到最新 Serv00-sb-yg 脚本版本号:${yellow}${latestV}${re} echo -e "${yellow}$(curl -sL https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sversion)${re}" fi echo -e "=========================================================" -ps aux | grep '[r]un -c con' > /dev/null && green "Sing-box主进程运行正常" || yellow "Sing-box主进程启动失败,请检测节点是否可用" +showuuid=$(jq -r '.inbounds[0].users[0].password' $WORKDIR/config.json 2>/dev/null) +ps aux | grep '[r]un -c con' > /dev/null && green "Sing-box主进程运行正常 UUID:$showuuid" || yellow "Sing-box主进程启动失败,请检测节点是否可用" if [ -f "$WORKDIR/boot.log" ] && grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null && ps aux | grep '[t]unnel --u' > /dev/null; then argosl=$(cat "$WORKDIR/boot.log" 2>/dev/null | grep -a trycloudflare.com | awk 'NR==2{print}' | awk -F// '{print $2}' | awk '{print $1}') checkhttp=$(curl -o /dev/null -s -w "%{http_code}\n" "https://$argosl")