Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server/proxy/tcpproxy: reuse addr in TCPProxy.Run
"addr" is the result of net.JoinHostPort which supports IPv6 address. Rather than ranging "tp.Endpoints" again, it's better to reuse "addr" in the first loop to collect "eps". See #7942 and #7943 for context. Signed-off-by: Jes Cok <[email protected]>
- Loading branch information