1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

explictly use the io.Writer instance for writing net.Buffers

This commit is contained in:
Darien Raymond 2018-02-12 14:35:42 +01:00
parent 7391b2439e
commit ae4dece6b0
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -22,7 +22,7 @@ func (w *BufferToBytesWriter) WriteMultiBuffer(mb MultiBuffer) error {
defer mb.Release()
bs := mb.ToNetBuffers()
_, err := bs.WriteTo(w)
_, err := bs.WriteTo(w.Writer)
return err
}