if the kind is x32 override the port number

This commit is contained in:
onyx-and-iris 2026-01-31 02:10:13 +00:00
parent 9c8f14c86f
commit 9266d1b458

View File

@ -31,6 +31,10 @@ various commands to manage mixer settings directly from the terminal.`,
kind := viper.GetString("kind") kind := viper.GetString("kind")
log.Debugf("Initializing client for mixer kind: %s", kind) log.Debugf("Initializing client for mixer kind: %s", kind)
if kind == "x32" && !viper.IsSet("port") {
viper.Set("port", 10023)
}
client, err := xair.NewClient( client, err := xair.NewClient(
viper.GetString("host"), viper.GetString("host"),
viper.GetInt("port"), viper.GetInt("port"),