diff --git a/src/config.rs b/src/config.rs index dd4abaf..e4335d2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -55,10 +55,7 @@ lazy_static::lazy_static! { static ref LOCAL_CONFIG: RwLock = RwLock::new(LocalConfig::load()); static ref TRUSTED_DEVICES: RwLock<(Vec, bool)> = Default::default(); static ref ONLINE: Mutex> = Default::default(); - pub static ref PROD_RENDEZVOUS_SERVER: RwLock = RwLock::new(match option_env!("RENDEZVOUS_SERVER") { - Some(key) if !key.is_empty() => key, - _ => "", - }.to_owned()); + pub static ref PROD_RENDEZVOUS_SERVER: RwLock = "".to_owned(); pub static ref EXE_RENDEZVOUS_SERVER: RwLock = Default::default(); pub static ref APP_NAME: RwLock = RwLock::new("RustDesk".to_owned()); static ref KEY_PAIR: Mutex> = Default::default(); @@ -103,10 +100,7 @@ const CHARS: &[char] = &[ pub const RENDEZVOUS_SERVERS: &[&str] = &["rs-ny.rustdesk.com"]; pub const PUBLIC_RS_PUB_KEY: &str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw="; -pub const RS_PUB_KEY: &str = match option_env!("RS_PUB_KEY") { - Some(key) if !key.is_empty() => key, - _ => PUBLIC_RS_PUB_KEY, -}; +pub const RS_PUB_KEY: &str = PUBLIC_RS_PUB_KEY; pub const RENDEZVOUS_PORT: i32 = 21116; pub const RELAY_PORT: i32 = 21117;