mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-25 02:02:51 +00:00
wgengine/magicsock: remove log allocation
This was the whole point but I goofed at the last line.
This commit is contained in:
@@ -1274,7 +1274,7 @@ func (c *Conn) logEndpointChange(endpoints []string, reasons map[string]string)
|
|||||||
}
|
}
|
||||||
fmt.Fprintf(buf, "%s (%s)", ep, reasons[ep])
|
fmt.Fprintf(buf, "%s (%s)", ep, reasons[ep])
|
||||||
}
|
}
|
||||||
c.logf("%s", buf)
|
c.logf("%s", buf.Bytes())
|
||||||
}
|
}
|
||||||
|
|
||||||
// c.mu must be held.
|
// c.mu must be held.
|
||||||
|
|||||||
Reference in New Issue
Block a user