From 9594f76f93d2be58c53dcf2daaf39fa33d2a000e Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 7 Sep 2017 22:58:04 +0200 Subject: [PATCH] ensure enough buffer for socks header --- proxy/socks/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/socks/protocol.go b/proxy/socks/protocol.go index a3ffc331..472f8c10 100644 --- a/proxy/socks/protocol.go +++ b/proxy/socks/protocol.go @@ -389,7 +389,7 @@ func ClientHandshake(request *protocol.RequestHeader, reader io.Reader, writer i return nil, err } - b := buf.NewLocal(64) + b := buf.NewLocal(512) if err := b.AppendSupplier(buf.ReadFullFrom(reader, 2)); err != nil { return nil, err }