ipn: add watch opt to include actions in health messages

Updates tailscale/corp#27759

Signed-off-by: James Sanderson <jsanderson@tailscale.com>
This commit is contained in:
James Sanderson
2025-06-03 15:09:34 +01:00
committed by James 'zofrex' Sanderson
parent 1635ccca27
commit 5fde183754
3 changed files with 161 additions and 17 deletions

View File

@@ -81,6 +81,8 @@ const (
NotifyInitialHealthState NotifyWatchOpt = 1 << 7 // if set, the first Notify message (sent immediately) will contain the current health.State of the client
NotifyRateLimit NotifyWatchOpt = 1 << 8 // if set, rate limit spammy netmap updates to every few seconds
NotifyHealthActions NotifyWatchOpt = 1 << 9 // if set, include PrimaryActions in health.State. Otherwise append the action URL to the text
)
// Notify is a communication from a backend (e.g. tailscaled) to a frontend