mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
less cap
This commit is contained in:
parent
141b31eb19
commit
fc7da93d06
@ -204,7 +204,7 @@ func (w *AuthenticationWriter) writeStream(mb buf.MultiBuffer) error {
|
||||
func (w *AuthenticationWriter) writePacket(mb buf.MultiBuffer) error {
|
||||
defer mb.Release()
|
||||
|
||||
mb2Write := buf.NewMultiBufferCap(len(mb) * 2)
|
||||
mb2Write := buf.NewMultiBufferCap(len(mb) + 1)
|
||||
|
||||
for {
|
||||
b := mb.SplitFirst()
|
||||
|
Loading…
Reference in New Issue
Block a user