From 939dda01d0676cddc99da20567617e98e88f0241 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 19 Dec 2020 20:04:17 +0100 Subject: [PATCH] support 'false' and 'true' values of 'encryption' parameter (#160) --- internal/conf/conf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/conf/conf.go b/internal/conf/conf.go index 180317a7622..41ddac2a83b 100644 --- a/internal/conf/conf.go +++ b/internal/conf/conf.go @@ -117,13 +117,13 @@ func (conf *Conf) fillAndCheck() error { conf.Encryption = "no" } switch conf.Encryption { - case "no": + case "no", "false": conf.EncryptionParsed = EncryptionNo case "optional": conf.EncryptionParsed = EncryptionOptional - case "yes": + case "yes", "true": conf.EncryptionParsed = EncryptionYes if _, ok := conf.ProtocolsParsed[gortsplib.StreamProtocolUDP]; ok {