mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-28 19:19:49 +09:00
Integrate expiration fixes (#754) in TS2021 branch
This commit is contained in:
@@ -238,6 +238,13 @@ func (h *Headscale) handleRegisterCommon(
|
||||
// The machine has expired
|
||||
h.handleMachineExpiredCommon(writer, req, registerRequest, *machine, machineKey)
|
||||
|
||||
machine.Expiry = &time.Time{}
|
||||
h.registrationCache.Set(
|
||||
NodePublicKeyStripPrefix(registerRequest.NodeKey),
|
||||
*machine,
|
||||
registerCacheExpiration,
|
||||
)
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user