From fb311e31ec630271457233fa858c8fcde069d28c Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 5 Nov 2021 17:11:40 +0100 Subject: [PATCH] add missing check on strict encryption + UDP multicast --- internal/conf/conf.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/conf/conf.go b/internal/conf/conf.go index e09365ce..c5bd3805 100644 --- a/internal/conf/conf.go +++ b/internal/conf/conf.go @@ -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") } }