Files
tailscale/ipn
Brendan Creane d01b721097 ipn/ipnlocal: record exit node suggestions in the caller's Notify
suggestExitNodeLocked takes a *ipn.Notify. When the suggestion changes,
it records the new value there for the caller to send with its other
changes, or broadcasts it at once when the caller passes nil. The resolve
and reconcile helpers between the entry points and that call pass the
parameter through. This replaces the suggestedExitNodePending flag and
its two helpers, so there is no accounting to keep correct.

The status path, the delta path, setPrefsLocked, startLocked, and
RefreshExitNode pass their own Notify. SuggestExitNode, the initial
Notify for a new watcher, reconcilePrefs, and the policy access check in
editPrefsLocked pass nil, as before this change.

The delta path now builds its Notify by value and sends it when any
field is set. In tests it sends on every delta, which keeps the wake-up
that end-to-end tests in another repo rely on.

Updates #22206

Signed-off-by: Brendan Creane <[email protected]>
2026-11-23 21:55:24 +00:00
..
2026-11-14 09:50:33 -08:00