mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 09:38:13 -05:00
修复修改密钥后,agent连不上bug
This commit is contained in:
parent
986cb8f3cd
commit
2abcbe6b94
@ -175,8 +175,8 @@ func (ma *memberAPI) addOrEditServer(c *gin.Context) {
|
|||||||
s.Host = dao.ServerList[s.ID].Host
|
s.Host = dao.ServerList[s.ID].Host
|
||||||
s.State = dao.ServerList[s.ID].State
|
s.State = dao.ServerList[s.ID].State
|
||||||
dao.SecretToID[s.Secret] = s.ID
|
dao.SecretToID[s.Secret] = s.ID
|
||||||
dao.ServerList[s.ID] = &s
|
|
||||||
delete(dao.SecretToID, dao.ServerList[s.ID].Secret)
|
delete(dao.SecretToID, dao.ServerList[s.ID].Secret)
|
||||||
|
dao.ServerList[s.ID] = &s
|
||||||
dao.ServerLock.RUnlock()
|
dao.ServerLock.RUnlock()
|
||||||
} else {
|
} else {
|
||||||
s.Host = &model.Host{}
|
s.Host = &model.Host{}
|
||||||
|
Loading…
Reference in New Issue
Block a user