mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
server: do not allow a client to control a session created with a different IP
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
func randUint32() uint32 {
|
||||
var b [4]byte
|
||||
rand.Read(b[:])
|
||||
return uint32(b[0]<<24) | uint32(b[1]<<16) | uint32(b[2]<<8) | uint32(b[3])
|
||||
return uint32(b[0])<<24 | uint32(b[1])<<16 | uint32(b[2])<<8 | uint32(b[3])
|
||||
}
|
||||
|
||||
// RTCPReceiver is a utility to generate RTCP receiver reports.
|
||||
|
Reference in New Issue
Block a user