mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 13:05:28 -05:00
handle empty payload
This commit is contained in:
@@ -23,7 +23,9 @@ func (this *OutboundConnectionHandler) Dispatch(destination v2net.Destination, p
|
||||
output := ray.OutboundOutput()
|
||||
|
||||
this.Destination = destination
|
||||
this.ConnOutput.Write(payload.Value)
|
||||
if !payload.IsEmpty() {
|
||||
this.ConnOutput.Write(payload.Value)
|
||||
}
|
||||
payload.Release()
|
||||
|
||||
writeFinish := &sync.Mutex{}
|
||||
|
||||
Reference in New Issue
Block a user