mirror of
https://github.com/GiriNeko/hbb_common.git
synced 2025-12-16 13:27:23 +00:00
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:
parent
79f8ac2d68
commit
33d90c7e07
1 changed files with 2 additions and 8 deletions
|
|
@ -55,10 +55,7 @@ lazy_static::lazy_static! {
|
||||||
static ref LOCAL_CONFIG: RwLock<LocalConfig> = RwLock::new(LocalConfig::load());
|
static ref LOCAL_CONFIG: RwLock<LocalConfig> = RwLock::new(LocalConfig::load());
|
||||||
static ref TRUSTED_DEVICES: RwLock<(Vec<TrustedDevice>, bool)> = Default::default();
|
static ref TRUSTED_DEVICES: RwLock<(Vec<TrustedDevice>, bool)> = Default::default();
|
||||||
static ref ONLINE: Mutex<HashMap<String, i64>> = 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") {
|
pub static ref PROD_RENDEZVOUS_SERVER: RwLock<String> = "".to_owned();
|
||||||
Some(key) if !key.is_empty() => key,
|
|
||||||
_ => "",
|
|
||||||
}.to_owned());
|
|
||||||
pub static ref EXE_RENDEZVOUS_SERVER: RwLock<String> = Default::default();
|
pub static ref EXE_RENDEZVOUS_SERVER: RwLock<String> = Default::default();
|
||||||
pub static ref APP_NAME: RwLock<String> = RwLock::new("RustDesk".to_owned());
|
pub static ref APP_NAME: RwLock<String> = RwLock::new("RustDesk".to_owned());
|
||||||
static ref KEY_PAIR: Mutex<Option<KeyPair>> = Default::default();
|
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 RENDEZVOUS_SERVERS: &[&str] = &["rs-ny.rustdesk.com"];
|
||||||
pub const PUBLIC_RS_PUB_KEY: &str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
|
pub const PUBLIC_RS_PUB_KEY: &str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
|
||||||
|
|
||||||
pub const RS_PUB_KEY: &str = match option_env!("RS_PUB_KEY") {
|
pub const RS_PUB_KEY: &str = PUBLIC_RS_PUB_KEY;
|
||||||
Some(key) if !key.is_empty() => key,
|
|
||||||
_ => PUBLIC_RS_PUB_KEY,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const RENDEZVOUS_PORT: i32 = 21116;
|
pub const RENDEZVOUS_PORT: i32 = 21116;
|
||||||
pub const RELAY_PORT: i32 = 21117;
|
pub const RELAY_PORT: i32 = 21117;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue