From b3ddf51a15c61188568925694aef336a89ab2264 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 11 Mar 2020 15:12:19 -0700 Subject: [PATCH] wgengine/magicsock: add a pointer value for logging Updates #109 Signed-off-by: Brad Fitzpatrick --- wgengine/magicsock/magicsock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go index b67f0bd31..5293af83c 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -779,7 +779,7 @@ func (c *Conn) runDerpReader(ctx context.Context, derpFakeAddr *net.UDPAddr, dc return default: } - c.logf("derp.Recv(derp%d): %v", derpFakeAddr.Port, err) + c.logf("[%p] derp.Recv(derp%d): %v", dc, derpFakeAddr.Port, err) time.Sleep(250 * time.Millisecond) continue }