Skip to content

Commit f340b29

Browse files
committed
fix(tauri) addition to the previous commit
1 parent 02cdfdf commit f340b29

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changes/loopback-fix.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-bundler": patch
3+
"tauri": patch
4+
---
5+
6+
Ignoring non UTF-8 characters on the loopback command output.

tauri/src/app/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn setup_content() -> crate::Result<Content<String>> {
7575
panic!("Failed to execute CheckNetIsolation LoopbackExempt -s");
7676
}
7777

78-
let output_str = String::from_utf8(exempt_output.stdout)?.to_lowercase();
78+
let output_str = String::from_utf8_lossy(exempt_output.stdout).to_lowercase();
7979
if !output_str.contains("win32webviewhost_cw5n1h2txyewy") {
8080
println!("Running Loopback command");
8181
runas::Command::new("powershell")

0 commit comments

Comments
 (0)