mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-17 14:57:44 -05:00
fix srtp header
This commit is contained in:
parent
7244dc928e
commit
9379b2f934
@ -20,7 +20,7 @@ func (*SRTP) Size() int32 {
|
|||||||
// Serialize implements PacketHeader.
|
// Serialize implements PacketHeader.
|
||||||
func (s *SRTP) Serialize(b []byte) {
|
func (s *SRTP) Serialize(b []byte) {
|
||||||
s.number++
|
s.number++
|
||||||
binary.BigEndian.PutUint16(b, s.number)
|
binary.BigEndian.PutUint16(b, s.header)
|
||||||
binary.BigEndian.PutUint16(b[2:], s.number)
|
binary.BigEndian.PutUint16(b[2:], s.number)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user