mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-30 06:51:59 -08:00
support 'false' and 'true' values of 'encryption' parameter (#160)
This commit is contained in:
parent
98a443d22d
commit
939dda01d0
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue