From 811a67f289075e6e41c3f5093a322a389d190c71 Mon Sep 17 00:00:00 2001 From: Dingjun Date: Sat, 20 Aug 2016 15:12:25 +0800 Subject: [PATCH] fix field name typo --- socks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socks.go b/socks.go index 8aa20da..d02fb17 100644 --- a/socks.go +++ b/socks.go @@ -39,10 +39,10 @@ func (s *SocksConn) Serve() { switch buf[0] { case socks4Version: - s4 := socks4Conn{client_conn: s.ClientConn, dial: dial} + s4 := socks4Conn{clientConn: s.ClientConn, dial: dial} s4.Serve() case socks5Version: - s5 := socks5Conn{client_conn: s.ClientConn, dial: dial} + s5 := socks5Conn{clientConn: s.ClientConn, dial: dial} s5.Serve() default: log.Printf("error version %s", buf[0])