From 7af5562d91478eb2bbcd7eb8441fc6d2737d1c4b 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: Wed, 19 Feb 2025 09:08:43 +0800 Subject: [PATCH] Update serv00.sh --- serv00.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/serv00.sh b/serv00.sh index 4c5fdc3..d063e79 100644 --- a/serv00.sh +++ b/serv00.sh @@ -1322,10 +1322,9 @@ menu() { nb=$(echo "$HOSTNAME" | cut -d '.' -f 1 | tr -d 's') ym=("$HOSTNAME" "cache$nb.serv00.com" "web$nb.serv00.com") rm -rf $WORKDIR/ip.txt $WORKDIR/hy2ip.txt -for ip in "${ym[@]}"; do -dig @8.8.8.8 +time=5 +short $ip >> $WORKDIR/hy2ip.txt -sleep 1 -done +dig @8.8.8.8 +time=5 +short "web$nb.serv00.com" >> $WORKDIR/hy2ip.txt +dig @8.8.8.8 +time=5 +short "$HOSTNAME" >> $WORKDIR/hy2ip.txt +dig @8.8.8.8 +time=5 +short "cache$nb.serv00.com" >> $WORKDIR/hy2ip.txt for host in "${ym[@]}"; do response=$(curl -sL --connect-timeout 5 --max-time 7 "https://ss.serv0.us.kg/api/getip?host=$host") if [[ "$response" =~ ^$|unknown|not|error ]]; then