Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix address_book_name cli

rustdesk2266fde26f60
diff --git a/src/core_main.rs b/src/core_main.rs
index 942066ae3..bcd22aabe 100644
--- a/src/core_main.rs
+++ b/src/core_main.rs
@@ -398,9 +398,9 @@ pub fn core_main() -> Option<Vec<String>> {
"uuid": uuid,
});
let header = "Authorization: Bearer ".to_owned() + &token;
- if user_name.is_none() && strategy_name.is_none() {
+ if user_name.is_none() && strategy_name.is_none() && address_book_name.is_none() {
println!(
- "--user_name or --strategy_name or address_book_name is required!"
+ "--user_name or --strategy_name or --address_book_name is required!"
);
} else {
if let Some(name) = user_name {