Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

do not load empty custom_client_config

rustdeskbc0ab88e74e1
diff --git a/src/flutter_ffi.rs b/src/flutter_ffi.rs
index 72e435d3f..9cfd71e3f 100644
--- a/src/flutter_ffi.rs
+++ b/src/flutter_ffi.rs
@@ -2124,7 +2124,9 @@ pub mod server_side {
*config::APP_DIR.write().unwrap() = app_dir.into();
}
if let Ok(custom_client_config) = env.get_string(&custom_client_config) {
- crate::read_custom_client(custom_client_config);
+ if !custom_client_config.is_empty() {
+ crate::read_custom_client(custom_client_config);
+ }
}
std::thread::spawn(move || start_server(true));
}