mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 05:13:19 +03:00
check for server with RS_DEF_PUB_KEY
This commit is contained in:
@@ -243,11 +243,10 @@ pub fn set_peer_option(id: String, name: String, value: String) {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn using_public_server() -> bool {
|
pub fn using_public_server() -> bool {
|
||||||
let key_check: Option<&'static str> = option_env!("RS_PUB_KEY_VAL");
|
if hbb_common::config::RS_PUB_KEY == hbb_common::config::RS_DEF_PUB_KEY {
|
||||||
if key_check != None && crate::get_custom_rendezvous_server(get_option_("custom-rendezvous-server")).is_empty() {
|
return true
|
||||||
return false;
|
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user