mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-29 08:01:03 +03:00
bring back allow-https-21114 https://github.com/rustdesk/rustdesk-server-pro/discussions/570#discussioncomment-13449526
This commit is contained in:
@@ -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