From 82ed7e527e585873a8e08bbc9ccca576eb87086d Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 24 Mar 2020 08:14:47 -0700 Subject: [PATCH] wgengine/magicsock: remove log allocation This was the whole point but I goofed at the last line. --- 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 d34411260..decc23586 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -1274,7 +1274,7 @@ func (c *Conn) logEndpointChange(endpoints []string, reasons map[string]string) } fmt.Fprintf(buf, "%s (%s)", ep, reasons[ep]) } - c.logf("%s", buf) + c.logf("%s", buf.Bytes()) } // c.mu must be held.