mirror of
https://github.com/juanfont/headscale.git
synced 2025-01-13 13:03:18 -05: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())
|
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)
|
respBody, err := encode(resp, &idKey, h.privateKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().
|
log.Error().
|
||||||
|
Loading…
Reference in New Issue
Block a user