mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-20 09:46:01 -05:00
When tailscaled restarts, it sends RegisterRequest with Auth=nil and
Expiry=zero. Previously this was treated as a logout because
time.Time{}.Before(time.Now()) returns true.
Add early return in handleRegister() to detect this case and preserve
the existing node state without modification.
Fixes #2862
15 KiB
15 KiB