mirror of https://github.com/v2ray/v2ray-core
Fix shadowsocks client handling proxied connection
parent
bccf11c12c
commit
bb498cbfa8
|
@ -99,10 +99,12 @@ func (v *Client) Dispatch(destination v2net.Destination, payload *buf.Buffer, ra
|
|||
return
|
||||
}
|
||||
|
||||
if !payload.IsEmpty() {
|
||||
if err := bodyWriter.Write(payload); err != nil {
|
||||
log.Info("Shadowsocks|Client: Failed to write payload: ", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var responseMutex sync.Mutex
|
||||
responseMutex.Lock()
|
||||
|
|
Loading…
Reference in New Issue