option_env!("API_SERVER")

This commit is contained in:
rustdesk 2023-06-27 13:39:33 +08:00
parent f2eb73ce8e
commit 4146e9a334

View File

@ -857,6 +857,10 @@ pub fn get_api_server(api: String, custom: String) -> String {
return lic.api.clone();
}
}
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);