mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-02 14:42:34 -08:00
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]>