From f79d8627f690d33f84d20288d53ea015647d3c24 Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Tue, 13 Dec 2016 17:13:39 +0800 Subject: [PATCH] specify the field name when initial SocksConn --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index ef29ef8..5a13602 100644 --- a/client.go +++ b/client.go @@ -255,7 +255,7 @@ func (cc *Client) handleRemoteForward(conn net.Conn, local string) { } func (cc *Client) handleDynamicForward(conn net.Conn) { - s := socks.SocksConn{conn, cc.client.Dial} + s := socks.SocksConn{ClientConn: conn, Dial: cc.client.Dial} s.Serve() }