Skip to content

Commit

Permalink
fix bugs:proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tsosunchia committed Jun 28, 2023
1 parent 2bc3863 commit 74f46f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions util/latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ var (
var FastIpCache = ""

func GetFastIP(domain string, port string, enableOutput bool) string {
proxyUrl := GetProxy()
if proxyUrl != nil {
return "api.leo.moe"
}
if FastIpCache != "" {
return FastIpCache
}
Expand Down
3 changes: 0 additions & 3 deletions wshandle/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ func createWsConn() *WsConn {
} else {
// 默认配置完成,开始寻找最优 IP
fastIp = util.GetFastIP(host, port, true)
if proxyUrl != nil {
fastIp = "api.leo.moe"
}
}
jwtToken, ua := envToken, []string{"Privileged Client"}
err := error(nil)
Expand Down

0 comments on commit 74f46f5

Please sign in to comment.