Skip to content

Commit

Permalink
设置latency测试时的fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
tsosunchia committed Feb 5, 2024
1 parent a82be1b commit 760e751
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util/latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ func GetFastIP(domain string, port string, enableOutput bool) string {
)
}
//}

//有些时候真的啥都不通,还是挑一个顶上吧
if result.IP == "" {
result.IP = "45.88.195.154"
}

FastIpCache = result.IP
return result.IP
}
Expand Down

0 comments on commit 760e751

Please sign in to comment.