check for env variable and option for message
This commit is contained in:
parent
42d5ca2419
commit
67db6bfeb7
@ -243,10 +243,11 @@ 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 {
|
||||||
if hbb_common::config::RS_PUB_KEY == "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=" {
|
let key_check: Option<&'static str> = option_env!("RS_PUB_KEY_VAL");
|
||||||
return true
|
if key_check != "None" and crate::get_custom_rendezvous_server(get_option_("custom-rendezvous-server")).is_empty() {
|
||||||
|
return False;
|
||||||
} else {
|
} else {
|
||||||
return false
|
return True;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user