From 19ca32efd7f7f8a7557fb9df28bd94f47826d7c8 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 29 Jan 2017 07:58:29 +0100 Subject: [PATCH] fix tcp connection source --- app/proxyman/inbound/worker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/proxyman/inbound/worker.go b/app/proxyman/inbound/worker.go index 6d66c4c32..a1b918aee 100644 --- a/app/proxyman/inbound/worker.go +++ b/app/proxyman/inbound/worker.go @@ -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()