remove lic check

This commit is contained in:
rustdesk 2022-05-12 20:22:19 +08:00
parent af2b0e050b
commit df2e4bb411
2 changed files with 0 additions and 8 deletions

View File

@ -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(""),

View File

@ -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);