use IMPLICIT_CONTROL.

This commit is contained in:
Miroslav Šedivý 2021-12-11 15:12:27 +01:00
parent 7d1fa28d88
commit f4682d3f1c

View File

@ -68,8 +68,8 @@ func (WebRTC) Init(cmd *cobra.Command) error {
}
// TODO: Should be moved to session config.
cmd.PersistentFlags().Bool("implicitcontrol", false, "if enabled members can gain control implicitly")
if err := viper.BindPFlag("implicitcontrol", cmd.PersistentFlags().Lookup("implicitcontrol")); err != nil {
cmd.PersistentFlags().Bool("implicit-control", false, "if enabled members can gain control implicitly")
if err := viper.BindPFlag("implicit-control", cmd.PersistentFlags().Lookup("implicit-control")); err != nil {
return err
}
@ -130,5 +130,5 @@ func (s *WebRTC) Set() {
}
// TODO: Should be moved to session config.
s.ImplicitControl = viper.GetBool("implicitcontrol")
s.ImplicitControl = viper.GetBool("implicit-control")
}