Update serv00.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-02-13 15:41:01 +08:00
committed by GitHub
parent 42143e8065
commit 0d59226f40
+1 -1
View File
@@ -1313,7 +1313,7 @@ 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 [[ -z "$response" || "$response" == *unknown* || "$response" == *not* || "$response" == *error* ]]; then
if [[ "$response" =~ ^$|unknown|not|error ]]; then
dig @8.8.8.8 +time=2 +short $host >> $WORKDIR/ip.txt
sleep 1
else