diff options
author | opentrade <[email protected]> | 2021-04-08 00:33:30 +0800 |
---|---|---|
committer | opentrade <[email protected]> | 2021-04-08 00:33:30 +0800 |
commit | 92bd9c325053c5b21fb424a45eae7215160ed610 (patch) | |
tree | 62659da223e4c6ca5e316e8687630f85d6733605 /src/main.rs | |
parent | 710f0b2681b27644512a5c0626012320c4a5b545 (diff) | |
download | rustdesk-server-92bd9c325053c5b21fb424a45eae7215160ed610.tar.gz rustdesk-server-92bd9c325053c5b21fb424a45eae7215160ed610.zip |
change-id option
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 96e0376..888fa11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,7 @@ fn main() -> ResultType<()> { -R, --rendezvous-servers=[HOSTS] 'Sets rendezvous servers, seperated by colon' -u, --software-url=[URL] 'Sets download url of RustDesk software of newest version' -r, --relay-servers=[HOST] 'Sets the default relay servers, seperated by colon' + -C, --change-id=[BOOL(default=Y)] 'Sets if support to change id' -k, --key=[KEY] 'Only allow the client with the same key'", DEFAULT_PORT, ); @@ -50,6 +51,7 @@ fn main() -> ResultType<()> { .map(|x| x.to_owned()) .collect(); let serial: i32 = get_arg("serial", "").parse().unwrap_or(0); + let id_change_support: bool = get_arg("change-id", "Y").to_uppercase() == "Y"; let rendezvous_servers: Vec<String> = get_arg("rendezvous-servers", "") .split(",") .filter(|x| !x.is_empty() && test_if_valid_server(x, "rendezvous-server").is_ok()) @@ -69,6 +71,7 @@ fn main() -> ResultType<()> { get_arg("software-url", ""), &get_arg("key", ""), stop, + id_change_support, )?; Ok(()) } |