mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 22:11:30 +08:00
they always forget to remove :21114 for https, so I remove for them
This commit is contained in:
@@ -898,7 +898,16 @@ pub fn get_custom_rendezvous_server(custom: String) -> String {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_api_server(api: String, custom: String) -> String {
|
||||
let res = get_api_server_(api, custom);
|
||||
if res.starts_with("https") && res.ends_with(":21114") {
|
||||
return res.replace(":21114", "");
|
||||
}
|
||||
res
|
||||
}
|
||||
|
||||
fn get_api_server_(api: String, custom: String) -> String {
|
||||
#[cfg(windows)]
|
||||
if let Ok(lic) = crate::platform::windows::get_license_from_exe_name() {
|
||||
if !lic.api.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user