fix: update configuration data access from latest_arc to data_arc for TUN and system proxy settings

This commit is contained in:
Tunglies
2025-11-09 16:05:32 +08:00
parent 6026f432da
commit c763fdd233

View File

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