Remove expiry update in expiry, we dont want to extend it just because they _try_ to connect
This commit is contained in:
parent
fd5f42c2e6
commit
c2393685f1
1 changed files with 0 additions and 6 deletions
6
api.go
6
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().
|
||||
|
|
Loading…
Reference in a new issue