do not load empty custom_client_config

This commit is contained in:
rustdesk 2024-04-16 22:17:05 +08:00
parent 01ec539065
commit bc0ab88e74

View File

@ -2124,8 +2124,10 @@ pub mod server_side {
*config::APP_DIR.write().unwrap() = app_dir.into(); *config::APP_DIR.write().unwrap() = app_dir.into();
} }
if let Ok(custom_client_config) = env.get_string(&custom_client_config) { if let Ok(custom_client_config) = env.get_string(&custom_client_config) {
if !custom_client_config.is_empty() {
crate::read_custom_client(custom_client_config); crate::read_custom_client(custom_client_config);
} }
}
std::thread::spawn(move || start_server(true)); std::thread::spawn(move || start_server(true));
} }