mirror of
https://github.com/rustdesk/rustdesk
synced 2026-04-21 13:27:19 +00:00
fix(shell): check kv in update_install_option (#14564)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
aab34b2338
commit
285e29d2dc
1 changed files with 3 additions and 0 deletions
|
|
@ -2029,6 +2029,9 @@ pub fn update_install_option(k: &str, v: &str) -> ResultType<()> {
|
|||
if !is_installed() || !crate::is_server() {
|
||||
return Ok(());
|
||||
}
|
||||
if ![REG_NAME_INSTALL_PRINTER].contains(&k) || !["0", "1"].contains(&v) {
|
||||
return Ok(());
|
||||
}
|
||||
let app_name = crate::get_app_name();
|
||||
let ext = app_name.to_lowercase();
|
||||
let cmds =
|
||||
|
|
|
|||
Loading…
Reference in a new issue