Update config.go to properly process bool env vars (#3382)

Fixes issue https://github.com/livekit/livekit/issues/3381
This commit is contained in:
Pablo Fuente Pérez
2025-02-06 18:02:21 -06:00
committed by GitHub
parent 8d14a6ae4a
commit b88de555bf
+1
View File
@@ -579,6 +579,7 @@ func GenerateCLIFlags(existingFlags []cli.Flag, hidden bool) ([]cli.Flag, error)
case reflect.Bool: case reflect.Bool:
flag = &cli.BoolFlag{ flag = &cli.BoolFlag{
Name: name, Name: name,
EnvVars: []string{envVar},
Usage: generatedCLIFlagUsage, Usage: generatedCLIFlagUsage,
Hidden: hidden, Hidden: hidden,
} }