mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-25 11:11:18 -08: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 <[email protected]>