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:
parent
fbbed156db
commit
9594f76f93
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user