diff --git a/src-tauri/src/core/sysopt.rs b/src-tauri/src/core/sysopt.rs index dacd057dfa7f384a6227329afb86bbfc8f187ed4..d2a5e4f6125fa233ee4f1d71d5d13624ed6885d7 100644 --- a/src-tauri/src/core/sysopt.rs +++ b/src-tauri/src/core/sysopt.rs @@ -75,7 +75,7 @@ impl Sysopt { /// update the system proxy pub fn update_sysproxy(&mut self) -> Result<()> { - if self.cur_sysproxy.is_none() { + if self.cur_sysproxy.is_none() || self.old_sysproxy.is_none() { return self.init_sysproxy(); }