Raj Singh d88ee20a98 controlclient: persist node key after login, don't wait for netmap
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>
2026-03-31 12:51:43 -05:00
..