mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
♻️ v4: 去掉添加 Agent ID 要求 需要更新面板 close #83
This commit is contained in:
@@ -27,6 +27,7 @@ func init() {
|
||||
dao.Cron = cron.New(cron.WithLocation(shanghai))
|
||||
dao.Crons = make(map[uint64]*model.Cron)
|
||||
dao.ServerList = make(map[uint64]*model.Server)
|
||||
dao.SecretToID = make(map[string]uint64)
|
||||
|
||||
err = dao.Conf.Read("data/config.yaml")
|
||||
if err != nil {
|
||||
@@ -68,6 +69,7 @@ func loadServers() {
|
||||
innerS.Host = &model.Host{}
|
||||
innerS.State = &model.HostState{}
|
||||
dao.ServerList[innerS.ID] = &innerS
|
||||
dao.SecretToID[innerS.Secret] = innerS.ID
|
||||
}
|
||||
dao.ReSortServer()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user