Switch to using nodeKey instead of machineKey for expired machines registration
Signed-off-by: Laurent Marchaud <laurent@marchaud.com>
This commit is contained in:
parent
fca33aacbe
commit
e85562268d
2 changed files with 2 additions and 2 deletions
2
api.go
2
api.go
|
@ -348,7 +348,7 @@ func (h *Headscale) RegistrationHandler(
|
|||
|
||||
machine.Expiry = &time.Time{}
|
||||
h.registrationCache.Set(
|
||||
machineKeyStr,
|
||||
NodePublicKeyStripPrefix(registerRequest.NodeKey),
|
||||
*machine,
|
||||
registerCacheExpiration,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue