Revert "Allow setting custom server and key with env variables"

This commit is contained in:
RustDesk authored and GitHub committed 2023-01-18 11:48:10 +08:00
1 parent a46c373081
commit 7aced73393
3 files changed
+8 -42

No files matched your search

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