change server check

check for custom server by pub_key not for just the option
This commit is contained in:
botanicvelious 2023-01-11 23:32:45 -07:00
parent a34781f4be
commit 829fd97e6f

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 == "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=" {
return true
} else {
return false
}
}
#[inline]