From db3b67219cff3f3309fb638a933100443513986e 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: Fri, 14 Feb 2025 12:24:19 +0800 Subject: [PATCH] Update serv00keep.sh --- serv00keep.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serv00keep.sh b/serv00keep.sh index 37c7f3e..a49b8cd 100644 --- a/serv00keep.sh +++ b/serv00keep.sh @@ -49,13 +49,13 @@ nb=$(echo "$HOSTNAME" | cut -d '.' -f 1 | tr -d 's') ym=("$HOSTNAME" "cache$nb.serv00.com" "web$nb.serv00.com") rm -rf ip.txt hy2ip.txt for ip in "${ym[@]}"; do -dig @8.8.8.8 +time=2 +short $ip >> hy2ip.txt +dig @8.8.8.8 +time=5 +short $ip >> hy2ip.txt sleep 1 done 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 -dig @8.8.8.8 +time=2 +short $host >> ip.txt +dig @8.8.8.8 +time=5 +short $host >> ip.txt sleep 1 else echo "$response" | while IFS='|' read -r ip status; do