ipn,ipn/local: broadcast ClientVersion if AutoUpdate.Check (#19107)

If AutoUpdate.Check is false, the client has opted out of checking for updates, so we shouldn't broadcast ClientVersion. If the client has opted in, it should be included in the initial Notify.

Updates tailscale/corp#32629

Signed-off-by: kari-ts <kari@tailscale.com>
This commit is contained in:
kari-ts
2026-03-24 15:06:20 -07:00
committed by GitHub
parent 1e51d57cdd
commit 9992b7c817
3 changed files with 111 additions and 3 deletions
+2
View File
@@ -85,6 +85,8 @@ const (
NotifyHealthActions NotifyWatchOpt = 1 << 9 // if set, include PrimaryActions in health.State. Otherwise append the action URL to the text
NotifyInitialSuggestedExitNode NotifyWatchOpt = 1 << 10 // if set, the first Notify message (sent immediately) will contain the current SuggestedExitNode if available
NotifyInitialClientVersion NotifyWatchOpt = 1 << 11 // if set, the first Notify message (sent immediately) will contain the current ClientVersion if available and if update checks are enabled
)
// Notify is a communication from a backend (e.g. tailscaled) to a frontend