镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 14:36:47 +00:00
fix(worker): fixed multi-manager configuration
the worker must be registerred on the manager `extra_status_manager` option is replaced by `api_base_list`, which overrides the `api_base` option
这个提交包含在:
@@ -55,12 +55,20 @@ type globalConfig struct {
|
||||
}
|
||||
|
||||
type managerConfig struct {
|
||||
APIBase string `toml:"api_base"`
|
||||
CACert string `toml:"ca_cert"`
|
||||
ExtraStatusAPIs []string `toml:"extra_status_managers"`
|
||||
APIBase string `toml:"api_base"`
|
||||
// this option overrides the APIBase
|
||||
APIList []string `toml:"api_base_list"`
|
||||
CACert string `toml:"ca_cert"`
|
||||
// Token string `toml:"token"`
|
||||
}
|
||||
|
||||
func (mc managerConfig) APIBaseList() []string {
|
||||
if len(mc.APIList) > 0 {
|
||||
return mc.APIList
|
||||
}
|
||||
return []string{mc.APIBase}
|
||||
}
|
||||
|
||||
type serverConfig struct {
|
||||
Hostname string `toml:"hostname"`
|
||||
Addr string `toml:"listen_addr"`
|
||||
|
||||
在新工单中引用
屏蔽一个用户