Skip to content

Commit a48f45f

Browse files
committed
更新域名
1 parent d1f289e commit a48f45f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/leomoeapi/leomoeapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func FetchIPInfo(ip string) (*IPGeoData, error) {
4949
host, port = util.GetHostAndPort()
5050
// 如果 host 是一个 IP 使用默认域名
5151
if valid := net.ParseIP(host); valid != nil {
52-
host = "api.leo.moe"
52+
host = "origin-fallback.nxtrace.org"
5353
} else {
5454
// 默认配置完成,开始寻找最优 IP
5555
fastIp = util.GetFastIP(host, port, false)

pow/pow_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

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

0 commit comments

Comments
 (0)