This commit is contained in:
rustdesk 2024-03-17 00:56:46 +08:00
parent 3caa5776c8
commit b65d65cb12

View File

@ -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.