From c2393685f1747512f9bf45ac846a4a9716969cd5 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 21 Nov 2021 21:14:40 +0000 Subject: [PATCH] Remove expiry update in expiry, we dont want to extend it just because they _try_ to connect --- api.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api.go b/api.go index 6901896f..565db969 100644 --- a/api.go +++ b/api.go @@ -370,12 +370,6 @@ func (h *Headscale) handleMachineExpired( strings.TrimSuffix(h.cfg.ServerURL, "/"), idKey.HexString()) } - if !reqisterRequest.Expiry.IsZero() { - machine.Expiry = &reqisterRequest.Expiry - } - - h.db.Save(&machine) - respBody, err := encode(resp, &idKey, h.privateKey) if err != nil { log.Error().