mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
Fix: gRPC multi accepting empty bytes (#411)
This commit is contained in:
parent
b0e7ad9663
commit
0470381fe2
3 changed files with 18 additions and 11 deletions
|
@ -38,7 +38,7 @@ func NewExisted(b []byte) *Buffer {
|
|||
|
||||
oLen := len(b)
|
||||
if oLen < Size {
|
||||
b = append(b, make([]byte, Size-oLen)...)
|
||||
b = b[:Size]
|
||||
}
|
||||
|
||||
return &Buffer{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue