mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
Fix: gRPC multi accepting empty bytes (#411)
This commit is contained in:
@ -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{
|
||||
|
Reference in New Issue
Block a user