mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 16:18:24 +00:00
handle empty payload in freedom and outbound
This commit is contained in:
@@ -97,8 +97,10 @@ func (this *VMessOutboundHandler) handleRequest(session *encoding.ClientSession,
|
||||
if request.Option.Has(protocol.RequestOptionChunkStream) {
|
||||
streamWriter = vmessio.NewAuthChunkWriter(streamWriter)
|
||||
}
|
||||
if err := streamWriter.Write(payload); err != nil {
|
||||
conn.SetReusable(false)
|
||||
if !payload.IsEmpty() {
|
||||
if err := streamWriter.Write(payload); err != nil {
|
||||
conn.SetReusable(false)
|
||||
}
|
||||
}
|
||||
writer.SetCached(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user