Skip to content

Commit

Permalink
Merge pull request #133 from ch8o/ch8o
Browse files Browse the repository at this point in the history
修复修改密钥后,agent连不上bug

Co-authored-by: ch8o <[email protected]>
  • Loading branch information
naiba and ch8o authored Jul 22, 2021
2 parents 6173c18 + 2abcbe6 commit bcb95ba
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,6 +174,8 @@ 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
delete(dao.SecretToID, dao.ServerList[s.ID].Secret)
dao.ServerList[s.ID] = &s
dao.ServerLock.RUnlock()
} else {
Expand Down

0 comments on commit bcb95ba

Please sign in to comment.