From 67549ea6586391f33f3822d371113f69b694fe4d 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, 10 Feb 2025 17:50:40 +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 99575bd..79739b6 100644 --- a/serv00.sh +++ b/serv00.sh @@ -1252,10 +1252,11 @@ done for ym in "${ym[@]}"; do response=$(curl -sL --connect-timeout 5 --max-time 7 "https://ss.botai.us.kg/api/getip?host=$ym") if [[ -z "$response" || "$response" == *unknown* ]]; then +nb=$(echo "$HOSTNAME" | cut -d '.' -f 1 | tr -d 's') +ym=("$HOSTNAME" "cache$nb.serv00.com" "web$nb.serv00.com") for ip in "${ym[@]}"; do dig @8.8.8.8 +time=2 +short $ip >> $WORKDIR/ip.txt sleep 1 -break done else echo "$response" | while IFS='|' read -r ip status; do