From bc0ab88e74e15a6e623ba35ab73d7dbe2832d614 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 16 Apr 2024 22:17:05 +0800 Subject: [PATCH] do not load empty custom_client_config --- src/flutter_ffi.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); }