1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-16 01:17:30 -05:00

ensure enough buffer for socks header

This commit is contained in:
Darien Raymond 2017-09-07 22:58:04 +02:00
parent fbbed156db
commit 9594f76f93

View File

@ -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
}