From cafdc3b303e043965f697d813e8d1a73ec930922 Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Mon, 11 Sep 2023 18:39:45 -0400 Subject: [PATCH] wgengine/magicsock: add extra logging for specific Mullvad node Change-Id: I9ad9f669b8e8b3db42173c0c3d428207871ab8f7 --- wgengine/magicsock/endpoint.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wgengine/magicsock/endpoint.go b/wgengine/magicsock/endpoint.go index 15c6c8b64..9cc86cea1 100644 --- a/wgengine/magicsock/endpoint.go +++ b/wgengine/magicsock/endpoint.go @@ -234,7 +234,14 @@ func (de *endpoint) noteRecvActivity(ipp netip.AddrPort) { de.bestAddr.AddrPort = ipp de.bestAddrAt = now de.trustBestAddrUntil = now.Add(5 * time.Second) + + shouldLog := de.publicKey.ShortString() == "[TNrdH]" + de.mu.Unlock() + + if shouldLog { + de.c.logf("noteRecvActivity: got activity from node [TNrdH]: %v", ipp) + } } elapsed := now.Sub(de.lastRecv.LoadAtomic())