mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fix: resolve namespace issue
This commit is contained in:
@@ -130,7 +130,12 @@ async fn clean_async() -> bool {
|
|||||||
// 4. DNS恢复(仅macOS)
|
// 4. DNS恢复(仅macOS)
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
let dns_task = async {
|
let dns_task = async {
|
||||||
match timeout(Duration::from_millis(1000), resolve::restore_public_dns()).await {
|
match timeout(
|
||||||
|
Duration::from_millis(1000),
|
||||||
|
crate::utils::resolve::restore_public_dns(),
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
{
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
log::info!(target: "app", "DNS设置已恢复");
|
log::info!(target: "app", "DNS设置已恢复");
|
||||||
true
|
true
|
||||||
|
|||||||
Reference in New Issue
Block a user