mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-29 13:03:09 +03:00
fix: check CheckNetIsolation LoopbackExempt -s
output should ignore utf8 chars instead of panic (#798)
This commit is contained in:
parent
822f7008d7
commit
02cdfdf646
@ -118,9 +118,7 @@ fn run() -> crate::Result<()> {
|
|||||||
panic!("Failed to execute CheckNetIsolation LoopbackExempt -s");
|
panic!("Failed to execute CheckNetIsolation LoopbackExempt -s");
|
||||||
}
|
}
|
||||||
|
|
||||||
let output_str = String::from_utf8(exempt_output.stdout)
|
let output_str = String::from_utf8_lossy(&exempt_output.stdout).to_lowercase();
|
||||||
.map_err(|_| anyhow::anyhow!("failed to convert LoopbackExempt output to String"))?
|
|
||||||
.to_lowercase();
|
|
||||||
if !output_str.contains("win32webviewhost_cw5n1h2txyewy") {
|
if !output_str.contains("win32webviewhost_cw5n1h2txyewy") {
|
||||||
println!("Running Loopback command");
|
println!("Running Loopback command");
|
||||||
Command::new("powershell")
|
Command::new("powershell")
|
||||||
|
Loading…
Reference in New Issue
Block a user