diff --git a/src/types/tcpproxy.go b/src/types/tcpproxy.go index 6696a2b..07e1ce9 100644 --- a/src/types/tcpproxy.go +++ b/src/types/tcpproxy.go @@ -24,6 +24,7 @@ func tcpProxyFunc(mtu uint64, dst, src net.Conn) error { func ProxyTCP(mtu uint64, c1, c2 net.Conn) error { // Start proxying errCh := make(chan error, 2) + c2.Write([]byte(c1.RemoteAddr().String())) go func() { errCh <- tcpProxyFunc(mtu, c1, c2) }() go func() { errCh <- tcpProxyFunc(mtu, c2, c1) }()