mirror of https://github.com/2dust/v2rayN
Fixed an issue where root processes could not be exited on macOS
parent
f779e311ed
commit
dad35f57d0
|
@ -110,7 +110,7 @@ public class CoreAdminHandler
|
|||
}
|
||||
else
|
||||
{
|
||||
sb.AppendLine($"sudo -S -k -p '' {cmdLine}");
|
||||
sb.AppendLine($"sudo -S {cmdLine}");
|
||||
}
|
||||
|
||||
await File.WriteAllTextAsync(shFilePath, sb.ToString());
|
||||
|
|
|
@ -65,7 +65,7 @@ public partial class SudoPasswordInputView : UserControl
|
|||
try
|
||||
{
|
||||
// Use sudo echo command to verify password
|
||||
var arg = new List<string>() { "-c", "sudo -S -k -p '' echo SUDO_CHECK" };
|
||||
var arg = new List<string>() { "-c", "sudo -S echo SUDO_CHECK" };
|
||||
var result = await CliWrap.Cli
|
||||
.Wrap(Global.LinuxBash)
|
||||
.WithArguments(arg)
|
||||
|
|
Loading…
Reference in New Issue