rustdesk
2025-06-12 23:11:07 +08:00
parent f9405711c6
commit 070b0354fd
2 changed files with 5 additions and 2 deletions

View File

@@ -971,7 +971,10 @@ pub fn get_api_server(api: String, custom: String) -> String {
if res.ends_with('/') {
res.pop();
}
if res.starts_with("https") && res.ends_with(":21114") {
if res.starts_with("https")
&& res.ends_with(":21114")
&& get_builtin_option(config::keys::OPTION_ALLOW_HTTPS_21114) != "Y"
{
return res.replace(":21114", "");
}
res