From b59ae9bd42b515f9288fa1d4896cf648c7bb66f9 Mon Sep 17 00:00:00 2001 From: botanicvelious Date: Tue, 17 Jan 2023 08:03:24 -0700 Subject: [PATCH] requires 3 elements in array --- libs/hbb_common/src/config.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index 0d5b81b26..d819c816d 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -80,12 +80,10 @@ const CHARS: &'static [char] = &[ //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], + 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") {