fix: a little

This commit is contained in:
MystiPanda 2024-03-11 15:02:41 +08:00
parent 7c5ce756f9
commit 6aa5c79332

View File

@ -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}");