mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
don't write empty payload
This commit is contained in:
parent
475ffc8196
commit
60ee80ca1b
@ -319,6 +319,10 @@ func (w *AuthenticationWriter) writePacket(mb buf.MultiBuffer) error {
|
||||
mb2Write.Append(eb)
|
||||
}
|
||||
|
||||
if mb2Write.IsEmpty() {
|
||||
return nil
|
||||
}
|
||||
|
||||
return w.writer.WriteMultiBuffer(mb2Write)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user