chore
This commit is contained in:
parent
0ef2ae4ac4
commit
006df4d20b
@ -278,12 +278,11 @@ pub fn core_main() -> Option<Vec<String>> {
|
|||||||
}
|
}
|
||||||
return None;
|
return None;
|
||||||
} else if args[0] == "--config" {
|
} else if args[0] == "--config" {
|
||||||
if args.len() == 2 {
|
if args.len() == 2 && !args[0].contains("host=") {
|
||||||
if crate::platform::is_installed()
|
if crate::platform::is_installed()
|
||||||
&& crate::platform::check_super_user_permission().unwrap_or_default()
|
&& 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`,
|
// encrypted string used in renaming exe.
|
||||||
// or the filename (without ext) used in renaming exe.
|
|
||||||
let name = if args[1].ends_with(".exe") {
|
let name = if args[1].ends_with(".exe") {
|
||||||
args[1].to_owned()
|
args[1].to_owned()
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user