From 976b089733ba9821372a42af7dac27b34e1fb5b5 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 21:35:38 +0800 Subject: [PATCH] Update serv00.sh --- serv00.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/serv00.sh b/serv00.sh index 96dfc70..955755a 100644 --- a/serv00.sh +++ b/serv00.sh @@ -1249,13 +1249,11 @@ for ip in "${ym[@]}"; do dig @8.8.8.8 +time=2 +short $ip >> $WORKDIR/hy2ip.txt sleep 1 done -#for ym in "${ym[@]}"; do -response=$(curl -sL --connect-timeout 5 --max-time 7 "https://ss.botai.us.kg/api/getip?host=$ym") +for host in "${ym[@]}"; do +response=$(curl -sL --connect-timeout 5 --max-time 7 "https://ss.serv0.us.kg/api/getip?host=$host") if [[ -z "$response" || "$response" == *unknown* ]]; then -for ip in "${ym[@]}"; do -dig @8.8.8.8 +time=2 +short $ip >> $WORKDIR/ip.txt +dig @8.8.8.8 +time=2 +short $host >> $WORKDIR/ip.txt sleep 1 -done else echo "$response" | while IFS='|' read -r ip status; do if [[ $status == "Accessible" ]]; then @@ -1265,7 +1263,7 @@ echo "$ip: 被墙 (Argo与CDN回源节点、proxyip依旧有效)" >> $WORKDIR/i fi done fi -#done +done green "Serv00服务器名称:$snb" green "当前可选择的IP如下:" cat $WORKDIR/ip.txt