health: fix magicsockReceiveFuncWarnable health clearing

Fixes #13204

Change-Id: I7154cdabc9dc362dcc3221fd5a86e21f610bbff0
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/13381/head
Brad Fitzpatrick 3 months ago committed by Brad Fitzpatrick
parent 3d401c11fa
commit 13dee9db7b

@ -1064,7 +1064,7 @@ func (t *Tracker) updateBuiltinWarnablesLocked() {
_ = t.lastStreamedMapResponse _ = t.lastStreamedMapResponse
_ = t.lastMapRequestHeard _ = t.lastMapRequestHeard
shouldClearMagicsockWarnings := false shouldClearMagicsockWarnings := true
for i := range t.MagicSockReceiveFuncs { for i := range t.MagicSockReceiveFuncs {
f := &t.MagicSockReceiveFuncs[i] f := &t.MagicSockReceiveFuncs[i]
if f.missing { if f.missing {
@ -1072,6 +1072,7 @@ func (t *Tracker) updateBuiltinWarnablesLocked() {
ArgMagicsockFunctionName: f.name, ArgMagicsockFunctionName: f.name,
}) })
shouldClearMagicsockWarnings = false shouldClearMagicsockWarnings = false
break
} }
} }
if shouldClearMagicsockWarnings { if shouldClearMagicsockWarnings {

Loading…
Cancel
Save