mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-05 05:41:30 +03: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:
@@ -494,7 +494,7 @@ async fn handle(data: Data, stream: &mut Connection) {
|
|||||||
None
|
None
|
||||||
};
|
};
|
||||||
} else if name == "hide_cm" {
|
} 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())
|
Some(hbb_common::password_security::hide_cm().to_string())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|||||||
Reference in New Issue
Block a user