mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Revert "Allow setting custom server and key with env variables"
This commit is contained in:
@@ -77,20 +77,12 @@ const CHARS: &'static [char] = &[
|
||||
'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
||||
];
|
||||
|
||||
//check for env variable RENDEZVOUS_SERVER if not use the default
|
||||
pub const RENDEZVOUS_SERVERS: [&'static str;3] =
|
||||
match option_env!("RENDEZVOUS_SERVER") {
|
||||
Some(key) => [key, key, key],
|
||||
None => ["rs-ny.rustdesk.com","rs-sg.rustdesk.com","rs-cn.rustdesk.com"],
|
||||
};
|
||||
|
||||
pub const RS_DEF_PUB_KEY: &'static str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
|
||||
//check for env variable RS_PUB_KEY if not use default
|
||||
pub const RS_PUB_KEY: &'static str = match option_env!("RS_PUB_KEY_VAL") {
|
||||
Some(key) => key,
|
||||
None => RS_DEF_PUB_KEY,
|
||||
};
|
||||
|
||||
pub const RENDEZVOUS_SERVERS: &'static [&'static str] = &[
|
||||
"rs-ny.rustdesk.com",
|
||||
"rs-sg.rustdesk.com",
|
||||
"rs-cn.rustdesk.com",
|
||||
];
|
||||
pub const RS_PUB_KEY: &'static str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
|
||||
pub const RENDEZVOUS_PORT: i32 = 21116;
|
||||
pub const RELAY_PORT: i32 = 21117;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user