From c0789a5fc0b6bf84907769c8489b3c1307aa52ee Mon Sep 17 00:00:00 2001 From: 21pages Date: Fri, 25 Apr 2025 17:13:19 +0800 Subject: [PATCH] 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 --- src/ipc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc.rs b/src/ipc.rs index 4ddceca27..43c082ae5 100644 --- a/src/ipc.rs +++ b/src/ipc.rs @@ -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