Fix v2ray websocket transport

This commit is contained in:
世界
2025-06-04 23:23:36 +08:00
parent dba0b5276b
commit 098a00b025
3 changed files with 12 additions and 33 deletions

View File

@@ -66,7 +66,7 @@ func (w *Writer) WriteBuffer(buffer *buf.Buffer) error {
ws.Cipher(data, *(*[4]byte)(header[1+payloadBitLength:]), 0)
}
return w.writer.WriteBuffer(buffer)
return wrapWsError(w.writer.WriteBuffer(buffer))
}
func (w *Writer) FrontHeadroom() int {