use IMPLICIT_CONTROL.
This commit is contained in:
parent
7d1fa28d88
commit
f4682d3f1c
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user