Update serv00.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-02-10 17:50:40 +08:00
committed by GitHub
parent 1e6f8db9d8
commit 67549ea658
+2 -1
View File
@@ -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