diff options
author | opentrade <[email protected]> | 2021-04-10 01:16:02 +0800 |
---|---|---|
committer | opentrade <[email protected]> | 2021-04-10 01:16:02 +0800 |
commit | 321bccc19e1644d8e69f41efe0e30117b2288021 (patch) | |
tree | 5dac4d41de3598399ea583b71ad232dcca2db8be /src/main.rs | |
parent | 4662b05d73a1ec44a63388010a0aa5ea0d6a0916 (diff) | |
download | rustdesk-server-321bccc19e1644d8e69f41efe0e30117b2288021.tar.gz rustdesk-server-321bccc19e1644d8e69f41efe0e30117b2288021.zip |
works
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 0b8c919..808c8fd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,6 +47,9 @@ fn main() -> ResultType<()> { } return default.to_owned(); }; + if !lic::check_lic(&get_arg("email", "")) { + return Ok(()); + } let port = get_arg("port", DEFAULT_PORT); let relay_servers: Vec<String> = get_arg("relay-servers", "") .split(",") @@ -65,9 +68,6 @@ fn main() -> ResultType<()> { log::info!("serial={}", serial); log::info!("rendezvous-servers={:?}", rendezvous_servers); let stop: Arc<Mutex<bool>> = Default::default(); - if !lic::check_lic(&get_arg("email", "")) { - return Ok(()); - } RendezvousServer::start( &addr, &addr2, |