现在已注册的节点会检查并更新 host;修复一个导致断开的连接没有正常退出的问题

This commit is contained in:
2025-05-27 18:53:01 +08:00
parent 48dba2c0c3
commit 36013d7d04
7 changed files with 53 additions and 27 deletions

View File

@@ -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)
}