mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-03 00:22:05 +00:00
handle empty payload in freedom and outbound
This commit is contained in:
2 files changed
+7
-3
No files matched your search
@@ -99,7 +99,9 @@ func (this *FreedomConnection) Dispatch(destination v2net.Destination, payload *
|
||||
readMutex.Lock()
|
||||
writeMutex.Lock()
|
||||
|
||||
conn.Write(payload.Value)
|
||||
if !payload.IsEmpty() {
|
||||
conn.Write(payload.Value)
|
||||
}
|
||||
|
||||
go func() {
|
||||
v2writer := v2io.NewAdaptiveWriter(conn)
|
||||
|
||||
Reference in new issue
Block a user