mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-10 18:06:01 +02:00
Add custom client judgment for hide cm (#11563)
There is latency in the HTTP request; add a custom client check to avoid the PRO variable being unset during application startup Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
198967ea35
commit
c0789a5fc0
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ async fn handle(data: Data, stream: &mut Connection) {
|
|||
None
|
||||
};
|
||||
} else if name == "hide_cm" {
|
||||
value = if crate::hbbs_http::sync::is_pro() {
|
||||
value = if crate::hbbs_http::sync::is_pro() || crate::common::is_custom_client() {
|
||||
Some(hbb_common::password_security::hide_cm().to_string())
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue