diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index 3f5330d10..3b8b3e57d 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -69,6 +69,7 @@ pub const RENDEZVOUS_SERVERS: &'static [&'static str] = &[ "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; diff --git a/src/client.rs b/src/client.rs index fa657d8fc..0ad10ceae 100644 --- a/src/client.rs +++ b/src/client.rs @@ -371,7 +371,7 @@ impl Client { conn: &mut Stream, ) -> ResultType<()> { let rs_pk = get_rs_pk(if key.is_empty() { - "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=" + hbb_common::config::RS_PUB_KEY } else { key });