mirror of
https://github.com/tailscale/tailscale.git
synced 2026-04-11 00:21:32 +02:00
sendStatus only included Persist in the Status when a netmap was available (nm != nil && loggedIn && inMapPoll). This meant the node key was not written to the state store until the first map response arrived. If the process was killed after a successful registration but before the first netmap, the key was lost and a fresh one generated on restart. Decouple persist from the netmap gate so it flows to the state store as soon as login succeeds. Fixes #19149 Signed-off-by: Raj Singh <raj@tailscale.com>