turn: allow for providing secret via file (#4564)

* turn: allow for providing secret via file

* turn: improve secret_file changes
This commit is contained in:
Ben Mayer
2026-06-08 11:18:14 +08:00
committed by GitHub
parent 6590570d7c
commit 20fd1ad2c1
3 changed files with 39 additions and 2 deletions
+4
View File
@@ -259,6 +259,10 @@ func startServer(ctx context.Context, c *cli.Command) error {
return err
}
if err = conf.LoadTURNSecrets(); err != nil {
return err
}
if cpuProfile := c.String("cpuprofile"); cpuProfile != "" {
if f, err := os.Create(cpuProfile); err != nil {
return err