mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 20:41:59 -08:00
add missing check on strict encryption + UDP multicast
This commit is contained in:
parent
6564c3511b
commit
fb311e31ec
1 changed files with 5 additions and 1 deletions
|
|
@ -270,7 +270,11 @@ func (conf *Conf) CheckAndFillMissing() error {
|
|||
|
||||
if conf.Encryption == EncryptionStrict {
|
||||
if _, ok := conf.Protocols[Protocol(gortsplib.TransportUDP)]; ok {
|
||||
return fmt.Errorf("strict encryption can't be used with the UDP transport")
|
||||
return fmt.Errorf("strict encryption can't be used with the UDP transport protocol")
|
||||
}
|
||||
|
||||
if _, ok := conf.Protocols[Protocol(gortsplib.TransportUDPMulticast)]; ok {
|
||||
return fmt.Errorf("strict encryption can't be used with the UDP-multicast transport protocol")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue