Merge pull request #2810 from botanicvelious/master

Allow setting custom server and key with env variables
This commit is contained in:
RustDesk
2023-01-18 11:48:01 +08:00
committed by GitHub
3 changed files with 42 additions and 8 deletions

View File

@@ -243,7 +243,11 @@ pub fn set_peer_option(id: String, name: String, value: String) {
#[inline]
pub fn using_public_server() -> bool {
crate::get_custom_rendezvous_server(get_option_("custom-rendezvous-server")).is_empty()
if hbb_common::config::RS_PUB_KEY == hbb_common::config::RS_DEF_PUB_KEY {
return true
} else {
return false
}
}
#[inline]