Resolve conflicts

This commit is contained in:
Sergei Maklagin
2025-08-15 12:57:47 +03:00
19 changed files with 77 additions and 37 deletions

View File

@@ -63,7 +63,7 @@ func (w *Writer) WriteBuffer(buffer *buf.Buffer) error {
if !w.isServer {
maskKey := rand.Uint32()
binary.BigEndian.PutUint32(header[1+payloadBitLength:], maskKey)
ws.Cipher(data, *(*[4]byte)(header[1+payloadBitLength:]), 0)
ws.Cipher(data, [4]byte(header[1+payloadBitLength:]), 0)
}
return wrapWsError(w.writer.WriteBuffer(buffer))