mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-08-22 17:46:48 +08: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