mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
Fix: CounterConnection with ReadV/WriteV (#720)
Co-authored-by: JimhHan <50871214+JimhHan@users.noreply.github.com>
This commit is contained in:
@ -151,7 +151,7 @@ func (w *HeaderWriter) Write(writer io.Writer) error {
|
||||
if w.header == nil {
|
||||
return nil
|
||||
}
|
||||
err := buf.WriteAllBytes(writer, w.header.Bytes())
|
||||
err := buf.WriteAllBytes(writer, w.header.Bytes(), nil)
|
||||
w.header.Release()
|
||||
w.header = nil
|
||||
return err
|
||||
|
Reference in New Issue
Block a user