mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
make start_server available in cli
This commit is contained in:
1 parent
cfaeb6ac0a
commit
7dc0c07578
4 files changed
+14
-3
No files matched your search
@@ -71,6 +71,8 @@ fn main() {
|
||||
if options.len() > 3 {
|
||||
remote_host = options[3].clone();
|
||||
}
|
||||
common::test_rendezvous_server();
|
||||
common::test_nat_type();
|
||||
let key = matches.value_of("key").unwrap_or("").to_owned();
|
||||
let token = LocalConfig::get_option("access_token");
|
||||
cli::start_one_port_forward(
|
||||
@@ -81,6 +83,8 @@ fn main() {
|
||||
key,
|
||||
token,
|
||||
);
|
||||
} else if let Some(p) = matches.value_of("server") {
|
||||
crate::start_server(true);
|
||||
}
|
||||
common::global_clean();
|
||||
}
|
||||
Reference in new issue
Block a user