mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 12:05:26 +00:00
fixed lint errors
This commit is contained in:
parent
8b5e8b7dfc
commit
af081e9fd3
7
api.go
7
api.go
@ -600,7 +600,6 @@ func (h *Headscale) handleAuthKey(
|
|||||||
machine.NodeKey = nodeKey
|
machine.NodeKey = nodeKey
|
||||||
machine.AuthKeyID = uint(pak.ID)
|
machine.AuthKeyID = uint(pak.ID)
|
||||||
h.RefreshMachine(machine, registerRequest.Expiry)
|
h.RefreshMachine(machine, registerRequest.Expiry)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
now := time.Now().UTC()
|
now := time.Now().UTC()
|
||||||
@ -614,7 +613,7 @@ func (h *Headscale) handleAuthKey(
|
|||||||
LastSeen: &now,
|
LastSeen: &now,
|
||||||
AuthKeyID: uint(pak.ID),
|
AuthKeyID: uint(pak.ID),
|
||||||
}
|
}
|
||||||
|
|
||||||
machine, err = h.RegisterMachine(
|
machine, err = h.RegisterMachine(
|
||||||
machineToRegister,
|
machineToRegister,
|
||||||
)
|
)
|
||||||
@ -629,9 +628,9 @@ func (h *Headscale) handleAuthKey(
|
|||||||
http.StatusInternalServerError,
|
http.StatusInternalServerError,
|
||||||
"could not register machine",
|
"could not register machine",
|
||||||
)
|
)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h.UsePreAuthKey(pak)
|
h.UsePreAuthKey(pak)
|
||||||
|
Loading…
Reference in New Issue
Block a user