This commit is contained in:
rustdesk 2023-07-25 16:37:39 +08:00
parent 0ef2ae4ac4
commit 006df4d20b

View File

@ -278,12 +278,11 @@ pub fn core_main() -> Option<Vec<String>> {
}
return None;
} else if args[0] == "--config" {
if args.len() == 2 {
if args.len() == 2 && !args[0].contains("host=") {
if crate::platform::is_installed()
&& crate::platform::check_super_user_permission().unwrap_or_default()
{
// arg: starting with `host=`, e.g. `host=127.0.0.1,api=https://test.com,key=asfs`,
// or the filename (without ext) used in renaming exe.
// encrypted string used in renaming exe.
let name = if args[1].ends_with(".exe") {
args[1].to_owned()
} else {