1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

fix srtp header

This commit is contained in:
Darien Raymond 2018-11-30 17:37:38 +01:00
parent 7244dc928e
commit 9379b2f934
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -20,7 +20,7 @@ func (*SRTP) Size() int32 {
// Serialize implements PacketHeader.
func (s *SRTP) Serialize(b []byte) {
s.number++
binary.BigEndian.PutUint16(b, s.number)
binary.BigEndian.PutUint16(b, s.header)
binary.BigEndian.PutUint16(b[2:], s.number)
}