Skip to content

Commit

Permalink
修复修改密钥后,agent连不上bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ch8o authored Jul 22, 2021
1 parent 6173c18 commit 986cb8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/dashboard/controller/member_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ func (ma *memberAPI) addOrEditServer(c *gin.Context) {
dao.ServerLock.RLock()
s.Host = dao.ServerList[s.ID].Host
s.State = dao.ServerList[s.ID].State
dao.SecretToID[s.Secret] = s.ID
dao.ServerList[s.ID] = &s
delete(dao.SecretToID, dao.ServerList[s.ID].Secret)
dao.ServerLock.RUnlock()
} else {
s.Host = &model.Host{}
Expand Down

0 comments on commit 986cb8f

Please sign in to comment.