Archived
2
0

control protection disabled by default.

This commit is contained in:
Miroslav Šedivý 2021-11-17 17:33:52 +01:00
parent e2ba39922c
commit bc961c5170

View File

@ -35,7 +35,7 @@ func (WebSocket) Init(cmd *cobra.Command) error {
return err return err
} }
cmd.PersistentFlags().Bool("control_protection", true, "control protection means, users can gain control only if at least one admin is in the room") cmd.PersistentFlags().Bool("control_protection", false, "control protection means, users can gain control only if at least one admin is in the room")
if err := viper.BindPFlag("control_protection", cmd.PersistentFlags().Lookup("control_protection")); err != nil { if err := viper.BindPFlag("control_protection", cmd.PersistentFlags().Lookup("control_protection")); err != nil {
return err return err
} }