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 }