mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-17 13:22:41 +09:00
Fix cli registration of expired machines
Signed-off-by: Laurent Marchaud <laurent@marchaud.com>
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user