aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorrustdesk <[email protected]>2022-05-12 20:22:19 +0800
committerrustdesk <[email protected]>2022-05-12 20:22:19 +0800
commitdf2e4bb411cd0aa4b46a7cabcde1025b5058ce0f (patch)
treeaacf06c69fee0a147f4f8b18407ec10d72af9592 /src
parentaf2b0e050b6450aec6e6a2fd4f2fa0ab8a2911eb (diff)
downloadrustdesk-server-df2e4bb411cd0aa4b46a7cabcde1025b5058ce0f.tar.gz
rustdesk-server-df2e4bb411cd0aa4b46a7cabcde1025b5058ce0f.zip
remove lic check
Diffstat (limited to 'src')
-rw-r--r--src/hbbr.rs4
-rw-r--r--src/rendezvous_server.rs4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/hbbr.rs b/src/hbbr.rs
index f3cfa7c..00a4f83 100644
--- a/src/hbbr.rs
+++ b/src/hbbr.rs
@@ -29,10 +29,6 @@ fn main() -> ResultType<()> {
section.iter().for_each(|(k, v)| std::env::set_var(k, v));
}
}
- #[cfg(not(debug_assertions))]
- if !lic::check_lic(matches.value_of("email").unwrap_or(""), version::VERSION) {
- return Ok(());
- }
start(
matches.value_of("port").unwrap_or(&RELAY_PORT.to_string()),
matches.value_of("key").unwrap_or(""),
diff --git a/src/rendezvous_server.rs b/src/rendezvous_server.rs
index abe319d..123eb98 100644
--- a/src/rendezvous_server.rs
+++ b/src/rendezvous_server.rs
@@ -92,10 +92,6 @@ impl RendezvousServer {
let addr2 = format!("0.0.0.0:{}", port - 1);
let addr3 = format!("0.0.0.0:{}", port + 2);
let pm = PeerMap::new().await?;
- #[cfg(not(debug_assertions))]
- if !crate::lic::check_lic(&get_arg("email"), crate::version::VERSION) {
- return Ok(());
- }
log::info!("serial={}", serial);
let rendezvous_servers = get_servers(&get_arg("rendezvous-servers"), "rendezvous-servers");
log::info!("Listening on tcp/udp {}", addr);