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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user