option_env!("API_SERVER")
This commit is contained in:
parent
f2eb73ce8e
commit
4146e9a334
@ -857,6 +857,10 @@ pub fn get_api_server(api: String, custom: String) -> String {
|
|||||||
return lic.api.clone();
|
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);
|
let s0 = get_custom_rendezvous_server(custom);
|
||||||
if !s0.is_empty() {
|
if !s0.is_empty() {
|
||||||
let s = crate::increase_port(&s0, -2);
|
let s = crate::increase_port(&s0, -2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user