Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Remove unused option_env!(...) (#13959)

Daniel Marschall4fa5e99e653c
diff --git a/src/common.rs b/src/common.rs
index 5f8772414..bba453c34 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -1072,10 +1072,6 @@ fn get_api_server_(api: String, custom: String) -> String {
if !api.is_empty() {
return api.to_owned();
}
- let api = option_env!("API_SERVER").unwrap_or_default();
- if !api.is_empty() {
- return api.into();
- }
let s0 = get_custom_rendezvous_server(custom);
if !s0.is_empty() {
let s = crate::increase_port(&s0, -2);
@@ -1737,8 +1733,7 @@ pub fn create_symmetric_key_msg(their_pk_b: [u8; 32]) -> (Bytes, Bytes, secretbo
#[inline]
pub fn using_public_server() -> bool {
- option_env!("RENDEZVOUS_SERVER").unwrap_or("").is_empty()
- && crate::get_custom_rendezvous_server(get_option("custom-rendezvous-server")).is_empty()
+ crate::get_custom_rendezvous_server(get_option("custom-rendezvous-server")).is_empty()
}
pub struct ThrottledInterval {