mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
if the kind is x32 override the port number
This commit is contained in:
@@ -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"),
|
||||||
|
|||||||
Reference in New Issue
Block a user