Merge pull request #463 from 21pages/support_restore_preset_password

support restore preset password except clear password
This commit is contained in:
RustDesk authored and GitHub committed 2025-12-16 11:45:53 +08:00
commit f3798067f0
1 file changed
+3 -1
+3 -1
View File
@@ -1070,7 +1070,9 @@ impl Config {
.get("password")
.map_or(false, |v| v == password)
{
return;
if CONFIG.read().unwrap().password.is_empty() {
return;
}
}
let mut config = CONFIG.write().unwrap();
if password == config.password {