Claus Lensbøl 5621ea6a40
wgengine/magicsock: avoid storing previous discoKeys in a map
When a client starts up without being able to connect to control, it
sends its discoKey to other nodes it wants to communicate with over
TSMP. This disco key will be a newer key than the one control knows
about.

If the client that can connect to control gets a full netmap, ensure
that the disco key for the node not connected to control is not
overwritten with the stale key control knows about.

Updates #12639

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
2026-02-05 13:56:01 -05:00
..