From b65d65cb129fd9b7d9a9121f03c46c9c171fe8eb Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 17 Mar 2024 00:56:46 +0800 Subject: [PATCH] fix ci --- src/flutter_ffi.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/flutter_ffi.rs b/src/flutter_ffi.rs index 27cbb2c19..9e34102a4 100644 --- a/src/flutter_ffi.rs +++ b/src/flutter_ffi.rs @@ -1854,7 +1854,12 @@ pub fn is_preset_password() -> bool { .read() .unwrap() .get("password") - .map_or(false, |p| p == &crate::ipc::get_permanent_password()) + .map_or(false, |p| { + #[cfg(not(any(target_os = "android", target_os = "ios")))] + return p == &crate::ipc::get_permanent_password(); + #[cfg(any(target_os = "android", target_os = "ios"))] + return p == &config::Config::get_permanent_password(); + }) } /// Send a url scheme throught the ipc.