refactor: enhance YouTube Premium check logic and streamline response handling

This commit is contained in:
Tunglies
2025-11-06 11:03:35 +08:00
parent a0f7fb7952
commit 363fa98891
3 changed files with 24 additions and 37 deletions
+1 -2
View File
@@ -189,7 +189,6 @@ pub async fn apply_dns_config(apply: bool) -> CmdResult {
})?;
logging!(info, Type::Config, "DNS config successfully applied");
handle::Handle::refresh_clash();
} else {
// 当关闭DNS设置时,重新生成配置(不加载DNS配置文件)
logging!(
@@ -212,9 +211,9 @@ pub async fn apply_dns_config(apply: bool) -> CmdResult {
})?;
logging!(info, Type::Config, "Config regenerated successfully");
handle::Handle::refresh_clash();
}
handle::Handle::refresh_clash();
Ok(())
}