Simplicity is a double-edged sword. It makes things easier for you and me, but it also makes things easier for bad people. So we decided to reduce the convenience.

This commit is contained in:
RustDesk 2025-01-29 16:44:36 +08:00 committed by GitHub
parent 79f8ac2d68
commit 33d90c7e07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,10 +55,7 @@ lazy_static::lazy_static! {
static ref LOCAL_CONFIG: RwLock<LocalConfig> = RwLock::new(LocalConfig::load());
static ref TRUSTED_DEVICES: RwLock<(Vec<TrustedDevice>, bool)> = Default::default();
static ref ONLINE: Mutex<HashMap<String, i64>> = Default::default();
pub static ref PROD_RENDEZVOUS_SERVER: RwLock<String> = RwLock::new(match option_env!("RENDEZVOUS_SERVER") {
Some(key) if !key.is_empty() => key,
_ => "",
}.to_owned());
pub static ref PROD_RENDEZVOUS_SERVER: RwLock<String> = "".to_owned();
pub static ref EXE_RENDEZVOUS_SERVER: RwLock<String> = Default::default();
pub static ref APP_NAME: RwLock<String> = RwLock::new("RustDesk".to_owned());
static ref KEY_PAIR: Mutex<Option<KeyPair>> = 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;