check for server with RS_DEF_PUB_KEY

This commit is contained in:
botanicvelious 2023-01-17 07:54:28 -07:00 committed by GitHub
parent 9980246b90
commit 8aea21e9f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
} }
} }