bring back allow-https-21114 https://github.com/rustdesk/rustdesk-server-pro/discussions/570#discussioncomment-13449526
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user