mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-05 18:20:48 -08:00
Use atomic.Pointer for certState (#833)
This commit is contained in:
parent
2801fb2286
commit
6b3d42efa5
5 changed files with 12 additions and 11 deletions
|
|
@ -161,5 +161,5 @@ func (c *Control) GetHostmap() *HostMap {
|
|||
}
|
||||
|
||||
func (c *Control) GetCert() *cert.NebulaCertificate {
|
||||
return c.f.certState.certificate
|
||||
return c.f.certState.Load().certificate
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue