update RENDEZVOUS_SERVER env check
This commit is contained in:
parent
67db6bfeb7
commit
12af9e6369
@ -77,21 +77,13 @@ const CHARS: &'static [char] = &[
|
||||
'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
||||
];
|
||||
|
||||
//check for env variable RENDEZVOUS_SERVER1-3 if not use the default
|
||||
pub const RENDEZVOUS_SERVERS: &'static [&'static str] = &[
|
||||
match option_env!("RENDEZVOUS_SERVER1") {
|
||||
Some(key) => key,
|
||||
None => "rs-ny.rustdesk.com",
|
||||
},
|
||||
match option_env!("RENDEZVOUS_SERVER2") {
|
||||
Some(key) => key,
|
||||
None => "rs-sg.rustdesk.com",
|
||||
},
|
||||
match option_env!("RENDEZVOUS_SERVER3") {
|
||||
Some(key) => key,
|
||||
None => "rs-cn.rustdesk.com",
|
||||
},
|
||||
];
|
||||
//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"],
|
||||
};
|
||||
|
||||
|
||||
//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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user