mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-25 19:21:18 -08:00
peerStatusFromNode is shared by both the Self-status path and the peer iteration in populatePeerStatusLocked, so the BlueprintConfig copy added in the prior commit was leaking onto peer PeerStatus entries whenever the server included BlueprintConfig in a peer's Node record. The ipnstate.PeerStatus.BlueprintConfig docstring and the v2 design both promise nil on peer entries. Move the copy into MutateSelfStatus, alongside the other Self-only fields. BlueprintID stays in the shared helper since both Self and peers legitimately surface it (the status subcommand filters peers by it). Adds TestPeerStatusFromNodeDoesNotCopyBlueprintConfig to lock in the invariant. Updates #cleanup Signed-off-by: Kabir Sikand <[email protected]>