mirror of
https://github.com/yggdrasil-network/yggstack.git
synced 2025-04-28 22:25:08 +03:00
Merge 572cd61a2d
into f465d71770
This commit is contained in:
commit
b488594b03
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ func tcpProxyFunc(mtu uint64, dst, src net.Conn) error {
|
||||||
func ProxyTCP(mtu uint64, c1, c2 net.Conn) error {
|
func ProxyTCP(mtu uint64, c1, c2 net.Conn) error {
|
||||||
// Start proxying
|
// Start proxying
|
||||||
errCh := make(chan error, 2)
|
errCh := make(chan error, 2)
|
||||||
|
c2.Write([]byte(c1.RemoteAddr().String()))
|
||||||
go func() { errCh <- tcpProxyFunc(mtu, c1, c2) }()
|
go func() { errCh <- tcpProxyFunc(mtu, c1, c2) }()
|
||||||
go func() { errCh <- tcpProxyFunc(mtu, c2, c1) }()
|
go func() { errCh <- tcpProxyFunc(mtu, c2, c1) }()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue