diff --git a/pkg/leomoeapi/leomoeapi.go b/pkg/leomoeapi/leomoeapi.go index 1182678b..d5e2306d 100644 --- a/pkg/leomoeapi/leomoeapi.go +++ b/pkg/leomoeapi/leomoeapi.go @@ -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) diff --git a/pow/pow_test.go b/pow/pow_test.go index 51dc0340..0d75e91a 100644 --- a/pow/pow_test.go +++ b/pow/pow_test.go @@ -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") }