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
|
||||
};
|
||||
} 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
|
||||
|
||||
Reference in New Issue
Block a user