Skip to content

Commit

Permalink
health: fix magicsockReceiveFuncWarnable health clearing
Browse files Browse the repository at this point in the history
Fixes tailscale#13204

Change-Id: I7154cdabc9dc362dcc3221fd5a86e21f610bbff0
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
  • Loading branch information
bradfitz committed Sep 5, 2024
1 parent 3d401c1 commit 13dee9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion health/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -1064,14 +1064,15 @@ func (t *Tracker) updateBuiltinWarnablesLocked() {
_ = t.lastStreamedMapResponse
_ = t.lastMapRequestHeard

shouldClearMagicsockWarnings := false
shouldClearMagicsockWarnings := true
for i := range t.MagicSockReceiveFuncs {
f := &t.MagicSockReceiveFuncs[i]
if f.missing {
t.setUnhealthyLocked(magicsockReceiveFuncWarnable, Args{
ArgMagicsockFunctionName: f.name,
})
shouldClearMagicsockWarnings = false
break
}
}
if shouldClearMagicsockWarnings {
Expand Down

0 comments on commit 13dee9d

Please sign in to comment.