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

2
Cargo.lock generated
View File

@@ -3623,7 +3623,7 @@ dependencies = [
[[package]]
name = "kcp-sys"
version = "0.1.0"
source = "git+https://github.com/rustdesk-org/kcp-sys#00e8865454615a5c554d899efd8bc6eae812aaf1"
source = "git+https://github.com/rustdesk-org/kcp-sys#1e5e30ab8b8c2f7787ab0f88822de36476531562"
dependencies = [
"anyhow",
"auto_impl",

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