现在已注册的节点会检查并更新 host;修复一个导致断开的连接没有正常退出的问题
This commit is contained in:
@@ -21,7 +21,7 @@ func Online() (id int32, host string, err error) {
|
||||
}
|
||||
var body = strings.NewReader(string(bytes))
|
||||
|
||||
resp, err := http.Post(env.EndpointOnline, "application/json", body)
|
||||
resp, err := http.Post(env.EndpointAssign, "application/json", body)
|
||||
if err != nil {
|
||||
return 0, "", fmt.Errorf("执行请求失败: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user