Switch to using nodeKey instead of machineKey for expired machines registration

Signed-off-by: Laurent Marchaud <laurent@marchaud.com>
This commit is contained in:
Laurent Marchaud 2022-08-19 15:48:35 +02:00
parent fca33aacbe
commit e85562268d
No known key found for this signature in database
GPG key ID: FAD4D3279AE317C5
2 changed files with 2 additions and 2 deletions

View file

@ -803,7 +803,7 @@ func (h *Headscale) RegisterMachineFromAuthCallback(
)
if err == nil {
h.registrationCache.Delete(machineKeyStr)
h.registrationCache.Delete(nodeKeyStr)
}
return machine, err