mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-23 18:15:26 +00:00
Remove unused param
This commit is contained in:
parent
c4ecc4db91
commit
bda2d9c3b0
3
api.go
3
api.go
@ -126,7 +126,7 @@ func (h *Headscale) RegistrationHandler(ctx *gin.Context) {
|
|||||||
// The client sends an Expiry in the past if the client is requesting to expire the key (aka logout)
|
// The client sends an Expiry in the past if the client is requesting to expire the key (aka logout)
|
||||||
// https://github.com/tailscale/tailscale/blob/main/tailcfg/tailcfg.go#L648
|
// https://github.com/tailscale/tailscale/blob/main/tailcfg/tailcfg.go#L648
|
||||||
if !req.Expiry.IsZero() && req.Expiry.UTC().Before(now) {
|
if !req.Expiry.IsZero() && req.Expiry.UTC().Before(now) {
|
||||||
h.handleMachineLogOut(ctx, machineKey, req, *machine)
|
h.handleMachineLogOut(ctx, machineKey, *machine)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -286,7 +286,6 @@ func (h *Headscale) getMapKeepAliveResponse(
|
|||||||
func (h *Headscale) handleMachineLogOut(
|
func (h *Headscale) handleMachineLogOut(
|
||||||
ctx *gin.Context,
|
ctx *gin.Context,
|
||||||
idKey wgkey.Key,
|
idKey wgkey.Key,
|
||||||
reqisterRequest tailcfg.RegisterRequest,
|
|
||||||
machine Machine,
|
machine Machine,
|
||||||
) {
|
) {
|
||||||
resp := tailcfg.RegisterResponse{}
|
resp := tailcfg.RegisterResponse{}
|
||||||
|
Loading…
Reference in New Issue
Block a user