mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 15:35:41 +00:00
Update config.go to properly process bool env vars (#3382)
Fixes issue https://github.com/livekit/livekit/issues/3381
This commit is contained in:
committed by
GitHub
parent
8d14a6ae4a
commit
b88de555bf
@@ -578,9 +578,10 @@ func GenerateCLIFlags(existingFlags []cli.Flag, hidden bool) ([]cli.Flag, error)
|
||||
switch kind {
|
||||
case reflect.Bool:
|
||||
flag = &cli.BoolFlag{
|
||||
Name: name,
|
||||
Usage: generatedCLIFlagUsage,
|
||||
Hidden: hidden,
|
||||
Name: name,
|
||||
EnvVars: []string{envVar},
|
||||
Usage: generatedCLIFlagUsage,
|
||||
Hidden: hidden,
|
||||
}
|
||||
case reflect.String:
|
||||
flag = &cli.StringFlag{
|
||||
|
||||
Reference in New Issue
Block a user