Skip to content

Commit

Permalink
Update ProxyService.Operate.cs
Browse files Browse the repository at this point in the history
Update DNS check code
  • Loading branch information
Bpc-CPU authored Feb 14, 2025
1 parent 88b4aac commit 227a15f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ async Task<OperateProxyServiceResult> StartProxyServiceCoreAsync()
}
else
{
proxyDNS = await GetFastestDNSAsync(ProxySettingsWindowViewModel.ProxyDNSs.Skip(1));
//if(!checkIfNullOrEmpty(proxyDNS)){
proxyDNS = await GetFastestDNSAsync(ProxySettingsWindowViewModel.ProxyDNSs.Skip(1).Append(proxyDNS));
//}else{
// proxyDNS = await GetFastestDNSAsync(ProxySettingsWindowViewModel.ProxyDNSs.Skip(1));
//}
}
}

Expand Down Expand Up @@ -541,4 +545,4 @@ public bool OnStopedShowToastReturnProxyStatus()
// 如果没有有效结果,返回默认值
return null;
}
}
}

0 comments on commit 227a15f

Please sign in to comment.