mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-03 23:17:47 +00:00
if the kind is x32 override the port number
This commit is contained in:
parent
9c8f14c86f
commit
9266d1b458
@ -31,6 +31,10 @@ various commands to manage mixer settings directly from the terminal.`,
|
||||
kind := viper.GetString("kind")
|
||||
log.Debugf("Initializing client for mixer kind: %s", kind)
|
||||
|
||||
if kind == "x32" && !viper.IsSet("port") {
|
||||
viper.Set("port", 10023)
|
||||
}
|
||||
|
||||
client, err := xair.NewClient(
|
||||
viper.GetString("host"),
|
||||
viper.GetInt("port"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user