mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-23 18:15:26 +00:00
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
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 New Issue
Block a user