ipn/ipnlocal: fix deadlock when filtering DisplayMessage URLs

Updates tailscale/corp#27759

Signed-off-by: James Sanderson <jsanderson@tailscale.com>
This commit is contained in:
James Sanderson
2025-06-02 15:52:16 +01:00
committed by James 'zofrex' Sanderson
parent 5f35143d83
commit 8a3afa5963
2 changed files with 13 additions and 2 deletions

View File

@@ -5374,6 +5374,7 @@ func TestDisplayMessagesURLFilter(t *testing.T) {
ht.SetIPNState("NeedsLogin", true)
ht.GotStreamedMapResponse()
defer b.lockAndGetUnlock()()
b.setNetMapLocked(&netmap.NetworkMap{
DisplayMessages: map[tailcfg.DisplayMessageID]tailcfg.DisplayMessage{
"test-message": {