mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-16 21:10:44 +09:00
3bd4ecd9cd
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