Remove expiry update in expiry, we dont want to extend it just because they _try_ to connect

This commit is contained in:
Kristoffer Dalby 2021-11-21 21:14:40 +00:00
parent fd5f42c2e6
commit c2393685f1
No known key found for this signature in database
GPG Key ID: 09F62DC067465735

6
api.go
View File

@ -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().