mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-25 01:07:52 +00:00
Remove special case for authkey
We no longer have weird expire behaviour, so we dont need this case
This commit is contained in:
parent
a2b9f3bede
commit
8ccc51ae57
7
api.go
7
api.go
@ -132,13 +132,6 @@ func (h *Headscale) RegistrationHandler(ctx *gin.Context) {
|
|||||||
return
|
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() {
|
if machine.Registered && !machine.isExpired() {
|
||||||
h.handleMachineValidRegistration(ctx, machineKey, *machine)
|
h.handleMachineValidRegistration(ctx, machineKey, *machine)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user