mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-18 08:21:34 +08:00
fix: update configuration data access from latest_arc to data_arc for TUN and system proxy settings
This commit is contained in:
parent
6026f432da
commit
c763fdd233
@ -47,7 +47,7 @@ pub async fn clean_async() -> bool {
|
|||||||
let tun_task = async {
|
let tun_task = async {
|
||||||
let tun_enabled = Config::verge()
|
let tun_enabled = Config::verge()
|
||||||
.await
|
.await
|
||||||
.latest_arc()
|
.data_arc()
|
||||||
.enable_tun_mode
|
.enable_tun_mode
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ pub async fn clean_async() -> bool {
|
|||||||
// 检查系统代理是否开启
|
// 检查系统代理是否开启
|
||||||
let sys_proxy_enabled = Config::verge()
|
let sys_proxy_enabled = Config::verge()
|
||||||
.await
|
.await
|
||||||
.latest_arc()
|
.data_arc()
|
||||||
.enable_system_proxy
|
.enable_system_proxy
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ pub async fn clean_async() -> bool {
|
|||||||
{
|
{
|
||||||
let sys_proxy_enabled = Config::verge()
|
let sys_proxy_enabled = Config::verge()
|
||||||
.await
|
.await
|
||||||
.latest_arc()
|
.data_arc()
|
||||||
.enable_system_proxy
|
.enable_system_proxy
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
|
|
||||||
@ -311,7 +311,7 @@ pub async fn hide() {
|
|||||||
|
|
||||||
let enable_auto_light_weight_mode = Config::verge()
|
let enable_auto_light_weight_mode = Config::verge()
|
||||||
.await
|
.await
|
||||||
.latest_arc()
|
.data_arc()
|
||||||
.enable_auto_light_weight_mode
|
.enable_auto_light_weight_mode
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user