etcd/server/proxy/tcpproxy
Jes Cok 88a1bc3170 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 <xigua67damn@gmail.com>
2025-01-15 22:08:23 +08:00
..
doc.go server: Move server files to 'server' directory. 2020-10-26 12:57:19 +01:00
userspace_test.go server/proxy/tcpproxy: use net.JoinHostPort rather than formatAddr 2024-04-21 23:28:51 +08:00
userspace.go server/proxy/tcpproxy: reuse addr in TCPProxy.Run 2025-01-15 22:08:23 +08:00