mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-27 00:36:49 +09: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