mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-02 08:19:14 +02:00
use IMPLICIT_CONTROL.
This commit is contained in:
parent
7d1fa28d88
commit
f4682d3f1c
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue