0
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:
Jim Han
2021-03-21 17:16:52 +08:00
committed by GitHub
parent b0e7ad9663
commit 0470381fe2
3 changed files with 18 additions and 11 deletions

View File

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