From c0ddddfb1f457895750ded9444f5e374bcdaa477 Mon Sep 17 00:00:00 2001 From: GyDi <segydi@foxmail.com> Date: Fri, 28 Oct 2022 01:06:54 +0800 Subject: [PATCH] fix: reset proxy --- src-tauri/src/core/sysopt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/core/sysopt.rs b/src-tauri/src/core/sysopt.rs index b3b95f9..dacd057 100644 --- a/src-tauri/src/core/sysopt.rs +++ b/src-tauri/src/core/sysopt.rs @@ -114,7 +114,7 @@ impl Sysopt { } old.set_system_proxy()?; - } else if let Some(mut cur) = cur { + } else if let Some(mut cur @ Sysproxy { enable: true, .. }) = cur { // 没有原代ç†ï¼Œå°±æŒ‰çŽ°åœ¨çš„代ç†è®¾ç½®disableå³å¯ log::info!(target: "app", "reset proxy by disabling the current proxy"); cur.enable = false; -- GitLab