Browse Source

support 'false' and 'true' values of 'encryption' parameter (#160)

pull/169/head v0.13.1
aler9 5 years ago
parent
commit
939dda01d0
  1. 4
      internal/conf/conf.go

4
internal/conf/conf.go

@ -117,13 +117,13 @@ func (conf *Conf) fillAndCheck() error { @@ -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 {

Loading…
Cancel
Save