mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-24 21:51:14 +03:00
refactor is_custom_client
This commit is contained in:
@@ -1721,9 +1721,17 @@ pub fn get_builtin_option(key: &str) -> String {
|
|||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn is_custom_client() -> bool {
|
||||||
|
get_app_name() != "RustDesk"
|
||||||
|
}
|
||||||
|
|
||||||
pub fn verify_login(raw: &str, id: &str) -> bool {
|
pub fn verify_login(raw: &str, id: &str) -> bool {
|
||||||
true
|
true
|
||||||
/*
|
/*
|
||||||
|
if is_custom_client() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
return true;
|
return true;
|
||||||
let Ok(pk) = crate::decode64("IycjQd4TmWvjjLnYd796Rd+XkK+KG+7GU1Ia7u4+vSw=") else {
|
let Ok(pk) = crate::decode64("IycjQd4TmWvjjLnYd796Rd+XkK+KG+7GU1Ia7u4+vSw=") else {
|
||||||
|
|||||||
@@ -2015,7 +2015,7 @@ pub fn is_outgoing_only() -> SyncReturn<bool> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_custom_client() -> SyncReturn<bool> {
|
pub fn is_custom_client() -> SyncReturn<bool> {
|
||||||
SyncReturn(get_app_name() != "RustDesk")
|
SyncReturn(crate::common::is_custom_client())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_disable_settings() -> SyncReturn<bool> {
|
pub fn is_disable_settings() -> SyncReturn<bool> {
|
||||||
|
|||||||
Reference in New Issue
Block a user