From 8ccc51ae5750ffa099509c13b6dacbd523f2c55b Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 21 Nov 2021 13:45:19 +0000 Subject: [PATCH] Remove special case for authkey We no longer have weird expire behaviour, so we dont need this case --- api.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api.go b/api.go index ee10e88f..61146c6a 100644 --- a/api.go +++ b/api.go @@ -132,13 +132,6 @@ func (h *Headscale) RegistrationHandler(ctx *gin.Context) { return } - // We dont care about expiry time if the method is AuthKey, as we dont set that. - if machine.Registered && machine.RegisterMethod == RegisterMethodAuthKey { - h.handleMachineValidRegistration(ctx, machineKey, *machine) - - return - } - if machine.Registered && !machine.isExpired() { h.handleMachineValidRegistration(ctx, machineKey, *machine)