Update serv00.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-02-24 09:05:11 +08:00
committed by GitHub
parent e553937074
commit ce6fc1f7f1
+2 -1
View File
@@ -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")