mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-06 02:30:57 -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
2
ssh.go
2
ssh.go
|
|
@ -753,7 +753,7 @@ func sshPrintCert(ifce *Interface, fs interface{}, a []string, w sshd.StringWrit
|
|||
return nil
|
||||
}
|
||||
|
||||
cert := ifce.certState.certificate
|
||||
cert := ifce.certState.Load().certificate
|
||||
if len(a) > 0 {
|
||||
parsedIp := net.ParseIP(a[0])
|
||||
if parsedIp == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue