Skip to content

Commit 9509b1a

Browse files
committed
fix: more rigorous proxy survival judgments
1 parent 71c8971 commit 9509b1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

check.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ func CheckProxyAlive(proxyURL string) (respBody string, timeout int64, avail boo
5454
if resp.StatusCode != 200 {
5555
return "", 0, false
5656
}
57+
if gjson.GetBytes(body, "ip").String() == "" {
58+
return "", 0, false
59+
}
5760
return string(body), timeout, true
5861
}
5962

0 commit comments

Comments
 (0)