Integrate expiration fixes (#754) in TS2021 branch
This commit is contained in:
commit
e20e818a42
3 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue