fix: reset proxy

This commit is contained in:
GyDi 2022-10-28 01:06:54 +08:00
parent f7dab3ca56
commit c0ddddfb1f
No known key found for this signature in database
GPG Key ID: 58B15242BA8277A6

View File

@ -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;