mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-13 08:32:44 +02:00
fix(cli): pass correct tcp flag to start cmd
This commit is contained in:
+8
-14
@@ -964,16 +964,13 @@ fn main() -> Result<()> {
|
|||||||
"'--await-configuration'".to_string()
|
"'--await-configuration'".to_string()
|
||||||
},
|
},
|
||||||
|port| if arg.ffm {
|
|port| if arg.ffm {
|
||||||
format!("'--ffm','--tcp-server={}'", port)
|
format!("'--ffm','--tcp-port={}'", port)
|
||||||
} else if arg.await_configuration {
|
} else if arg.await_configuration {
|
||||||
format!("'--await-configuration','--tcp-server={}'", port)
|
format!("'--await-configuration','--tcp-port={}'", port)
|
||||||
} else if arg.ffm && arg.await_configuration {
|
} else if arg.ffm && arg.await_configuration {
|
||||||
format!(
|
format!("'--ffm','--await-configuration','--tcp-port={}'", port)
|
||||||
"'--ffm','--await-configuration','--tcp-server={}'",
|
|
||||||
port
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
format!("'--tcp-server={}'", port)
|
format!("'--tcp-port={}'", port)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -995,16 +992,13 @@ fn main() -> Result<()> {
|
|||||||
"'--await-configuration'".to_string()
|
"'--await-configuration'".to_string()
|
||||||
},
|
},
|
||||||
|port| if arg.ffm {
|
|port| if arg.ffm {
|
||||||
format!("'--ffm','--tcp-server={}'", port)
|
format!("'--ffm','--tcp-port={}'", port)
|
||||||
} else if arg.await_configuration {
|
} else if arg.await_configuration {
|
||||||
format!("'--await-configuration','--tcp-server={}'", port)
|
format!("'--await-configuration','--tcp-port={}'", port)
|
||||||
} else if arg.ffm && arg.await_configuration {
|
} else if arg.ffm && arg.await_configuration {
|
||||||
format!(
|
format!("'--ffm','--await-configuration','--tcp-port={}'", port)
|
||||||
"'--ffm','--await-configuration','--tcp-server={}'",
|
|
||||||
port
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
format!("'--tcp-server={}'", port)
|
format!("'--tcp-port={}'", port)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user