mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
refactor: simplify auto proxy disabling logic in clean_async function
This commit is contained in:
@@ -130,12 +130,9 @@ async fn clean_async() -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 关闭自动代理配置
|
// 关闭自动代理配置
|
||||||
match Autoproxy::get_auto_proxy() {
|
if let Ok(mut autoproxy) = Autoproxy::get_auto_proxy() {
|
||||||
Ok(mut autoproxy) => {
|
autoproxy.enable = false;
|
||||||
autoproxy.enable = false;
|
let _ = autoproxy.set_auto_proxy();
|
||||||
let _ = autoproxy.set_auto_proxy();
|
|
||||||
}
|
|
||||||
Err(_) => {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user