Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
36d199a200 | ||
|
|
7b74ed4419 |
@@ -68,7 +68,7 @@ func CrawlGo() {
|
||||
num := len(proxies)
|
||||
for i := 0; i < num; i++ {
|
||||
country, err := GeoIp.Find(proxies[i].BaseInfo().Server)
|
||||
if err != nil {
|
||||
if err != nil || country == "" {
|
||||
country = "Earth"
|
||||
}
|
||||
proxies[i].SetName(fmt.Sprintf("%s_%d_%s", ProjectName, i+1, country))
|
||||
|
||||
@@ -68,6 +68,7 @@ func checkProxyWithChan(p Proxy, c chan checkResult) {
|
||||
name: p.Identifier(),
|
||||
delay: 0,
|
||||
}
|
||||
return
|
||||
}
|
||||
c <- checkResult{
|
||||
name: p.Identifier(),
|
||||
|
||||
Reference in New Issue
Block a user