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 986cb8f commit 2abcbe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dashboard/controller/member_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ func (ma *memberAPI) addOrEditServer(c *gin.Context) {
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.ServerList[s.ID] = &s
dao.ServerLock.RUnlock()
} else {
s.Host = &model.Host{}
Expand Down

0 comments on commit 2abcbe6

Please sign in to comment.