mirror of
https://github.com/v2ray/v2ray-core.git
synced 2024-04-21 12:31:52 +00:00
fix srtp header
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user