diff --git a/Applications/Program.cs b/Applications/Program.cs index e659a7e..a7effbd 100644 --- a/Applications/Program.cs +++ b/Applications/Program.cs @@ -184,14 +184,14 @@ class Program { FileName = exePath, WorkingDirectory = workingDirectory, // 必须! - UseShellExecute = true // 或 false,根据需要 + UseShellExecute = true, // 或 false,根据需要 + Verb = "runas" // 指定管理员运行 }; - // 检测一下端口是否被占用48080 + // 检测一下端口是否被占用48082 if (!IsPortInUse("judgement")) { Process.Start(startInfo); } - } } else if (action == "/start")