Fix cli registration of expired machines
Signed-off-by: Laurent Marchaud <laurent@marchaud.com>
This commit is contained in:
parent
19455399f4
commit
c6ea9b4b80
2 changed files with 19 additions and 2 deletions
7
api.go
7
api.go
|
@ -346,6 +346,13 @@ func (h *Headscale) RegistrationHandler(
|
|||
// The machine has expired
|
||||
h.handleMachineExpired(writer, req, machineKey, registerRequest, *machine)
|
||||
|
||||
machine.Expiry = &time.Time{}
|
||||
h.registrationCache.Set(
|
||||
machineKeyStr,
|
||||
*machine,
|
||||
registerCacheExpiration,
|
||||
)
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue