mirror of
https://github.com/slackhq/nebula.git
synced 2026-02-15 17:24:23 +01:00
Use atomic.Pointer for certState (#833)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user