File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1721,9 +1721,17 @@ pub fn get_builtin_option(key: &str) -> String {
1721
1721
. unwrap_or_default ( )
1722
1722
}
1723
1723
1724
+ #[ inline]
1725
+ pub fn is_custom_client ( ) -> bool {
1726
+ get_app_name ( ) != "RustDesk"
1727
+ }
1728
+
1724
1729
pub fn verify_login ( raw : & str , id : & str ) -> bool {
1725
1730
true
1726
1731
/*
1732
+ if is_custom_client() {
1733
+ return true;
1734
+ }
1727
1735
#[cfg(debug_assertions)]
1728
1736
return true;
1729
1737
let Ok(pk) = crate::decode64("IycjQd4TmWvjjLnYd796Rd+XkK+KG+7GU1Ia7u4+vSw=") else {
Original file line number Diff line number Diff line change @@ -2015,7 +2015,7 @@ pub fn is_outgoing_only() -> SyncReturn<bool> {
2015
2015
}
2016
2016
2017
2017
pub fn is_custom_client ( ) -> SyncReturn < bool > {
2018
- SyncReturn ( get_app_name ( ) != "RustDesk" )
2018
+ SyncReturn ( crate :: common :: is_custom_client ( ) )
2019
2019
}
2020
2020
2021
2021
pub fn is_disable_settings ( ) -> SyncReturn < bool > {
You can’t perform that action at this time.
0 commit comments