From 6aa5c793322d9de26e74e59ea0425de5978925a3 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Mon, 11 Mar 2024 15:02:41 +0800 Subject: [PATCH] fix: a little --- src-tauri/src/core/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/core/core.rs b/src-tauri/src/core/core.rs index 0e7fa6bc..add23be7 100644 --- a/src-tauri/src/core/core.rs +++ b/src-tauri/src/core/core.rs @@ -270,7 +270,7 @@ impl CoreManager { log::debug!(target: "app", "try to unset system dns"); if enable_tun { let script = include_str!("./script/unset_dns.sh"); - match (|| async { Command::new("bash").args([script]).output() })().await { + match (|| Command::new("bash").args([script]).output())() { Ok(_) => return Ok(()), Err(err) => { log::error!(target: "app", "{err}");