Skip to content

Commit

Permalink
更新域名
Browse files Browse the repository at this point in the history
  • Loading branch information
tsosunchia committed Dec 4, 2023
1 parent d1f289e commit a48f45f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/leomoeapi/leomoeapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func FetchIPInfo(ip string) (*IPGeoData, error) {
host, port = util.GetHostAndPort()
// 如果 host 是一个 IP 使用默认域名
if valid := net.ParseIP(host); valid != nil {
host = "api.leo.moe"
host = "origin-fallback.nxtrace.org"
} else {
// 默认配置完成,开始寻找最优 IP
fastIp = util.GetFastIP(host, port, false)
Expand Down
2 changes: 1 addition & 1 deletion pow/pow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func TestGetToken(t *testing.T) {
token, err := GetToken("103.120.18.35", "api.leo.moe", "443")
token, err := GetToken("45.88.195.154", "origin-fallback.nxtrace.org", "443")
fmt.Println(token, err)
assert.NoError(t, err, "GetToken() returned an error")
}

0 comments on commit a48f45f

Please sign in to comment.