fix(windows): show UAC prompt for TUN service install/uninstall (#4959)

This commit is contained in:
Sline
2025-10-07 10:01:35 +08:00
committed by GitHub
parent d25eb49bfe
commit c05395c258
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ pub fn invoke_uwptools() -> Result<()> {
let level = token.privilege_level()?;
match level {
PrivilegeLevel::NotPrivileged => RunasCommand::new(tool_path).status()?,
PrivilegeLevel::NotPrivileged => RunasCommand::new(tool_path).show(true).status()?,
_ => StdCommand::new(tool_path).status()?,
};