mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-04 22:52:23 +08:00
fix: defer setup resources until after first window
This commit is contained in:
@@ -123,7 +123,7 @@ pub async fn delete_log() -> Result<()> {
|
||||
}
|
||||
|
||||
/// 初始化DNS配置文件
|
||||
async fn init_dns_config() -> Result<()> {
|
||||
pub(super) async fn init_dns_config() -> Result<()> {
|
||||
use serde_yaml_ng::Value;
|
||||
|
||||
// 创建DNS子配置
|
||||
@@ -307,10 +307,6 @@ pub async fn init_config() -> Result<()> {
|
||||
logging!(info, Type::Setup, "后台日志清理任务完成");
|
||||
});
|
||||
|
||||
if let Err(e) = init_dns_config().await {
|
||||
logging!(warn, Type::Setup, "DNS config initialization failed: {}", e);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user