mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user