mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
fix(windows): show UAC prompt for TUN service install/uninstall (#4959)
This commit is contained in:
@@ -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()?,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user