handle empty payload in freedom and outbound

This commit is contained in:
v2ray committed 2016-08-15 12:23:35 +02:00
1 parent cc92973daf
commit 66bb7879e0
2 files changed
+7 -3

No files matched your search

+3 -1
View File
@@ -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)