diff --git a/src-tauri/src/core/sysopt.rs b/src-tauri/src/core/sysopt.rs
index b3b95f92a119c4b3ba9a73977ff16b6f1d3c9521..dacd057dfa7f384a6227329afb86bbfc8f187ed4 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;