add missing check on strict encryption + UDP multicast

This commit is contained in:
aler9 2021-11-05 17:11:40 +01:00
parent 6564c3511b
commit fb311e31ec

View file

@ -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")
}
}