diff --git a/src/core_main.rs b/src/core_main.rs index 2644fe157..dc363a03c 100644 --- a/src/core_main.rs +++ b/src/core_main.rs @@ -278,12 +278,11 @@ pub fn core_main() -> Option> { } 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 {