mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-25 19:21:18 -08:00
Adds a pure waitForBlueprintProjection helper that polls a Status fetcher until the daemon reports a matching projection or a deadline elapses. Extracted from runJoin so the wait-loop behavior can be unit tested without a fake LocalClient. Also threads PeerStatus.BlueprintConfig (populated only on Self, from tailcfg.Node.BlueprintConfig) so the helper's success condition can be expressed in terms of the public Status surface. Peer entries never read this field; the helper checks only Status.Self. Updates #cleanup Signed-off-by: Kabir Sikand <[email protected]>