mirror of https://github.com/v2ray/v2ray-core
fix tcp connection source
parent
e9600f0aa5
commit
19ca32efd7
|
@ -50,6 +50,7 @@ func (w *tcpWorker) callback(conn internet.Connection) {
|
|||
}
|
||||
ctx = proxy.ContextWithAllowPassiveConnection(ctx, w.allowPassiveConn)
|
||||
ctx = proxy.ContextWithInboundDestination(ctx, v2net.TCPDestination(w.address, w.port))
|
||||
ctx = proxy.ContextWithSource(ctx, v2net.DestinationFromAddr(conn.RemoteAddr()))
|
||||
w.proxy.Process(ctx, v2net.Network_TCP, conn)
|
||||
cancel()
|
||||
conn.Close()
|
||||
|
|
Loading…
Reference in New Issue