fix mux in settings.

This commit is contained in:
Miroslav Šedivý
2023-01-13 18:35:16 +01:00
parent bb8bf201fe
commit 1d77b1ef87
+2 -2
View File
@@ -47,8 +47,8 @@ type Room struct {
}
func (Room) Init(cmd *cobra.Command) error {
cmd.PersistentFlags().StringSlice("usemux", []string{}, "use mux for connection - needs only one UDP and TCP port per room")
if err := viper.BindPFlag("usemux", cmd.PersistentFlags().Lookup("usemux")); err != nil {
cmd.PersistentFlags().Bool("mux", false, "use mux for connection - needs only one UDP and TCP port per room")
if err := viper.BindPFlag("mux", cmd.PersistentFlags().Lookup("mux")); err != nil {
return err
}