requires 3 elements in array
This commit is contained in:
parent
8aea21e9f5
commit
b59ae9bd42
@ -80,12 +80,10 @@ const CHARS: &'static [char] = &[
|
|||||||
//check for env variable RENDEZVOUS_SERVER if not use the default
|
//check for env variable RENDEZVOUS_SERVER if not use the default
|
||||||
pub const RENDEZVOUS_SERVERS: [&'static str;3] =
|
pub const RENDEZVOUS_SERVERS: [&'static str;3] =
|
||||||
match option_env!("RENDEZVOUS_SERVER") {
|
match option_env!("RENDEZVOUS_SERVER") {
|
||||||
Some(key) => [key],
|
Some(key) => [key, key, key],
|
||||||
None => ["rs-ny.rustdesk.com","rs-sg.rustdesk.com","rs-cn.rustdesk.com"],
|
None => ["rs-ny.rustdesk.com","rs-sg.rustdesk.com","rs-cn.rustdesk.com"],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pub const RS_DEF_PUB_KEY: &'static str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
|
pub const RS_DEF_PUB_KEY: &'static str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
|
||||||
//check for env variable RS_PUB_KEY if not use default
|
//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") {
|
pub const RS_PUB_KEY: &'static str = match option_env!("RS_PUB_KEY_VAL") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user