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-07 01:02:21 +01:00
committed by GitHub
parent 8d14a6ae4a
commit b88de555bf

View File

@@ -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{