mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
fix: clear DNS Cache wont clean system dns cache
This commit is contained in:
@@ -235,7 +235,12 @@ namespace Netch.Forms
|
||||
{
|
||||
try
|
||||
{
|
||||
await Task.Run(() => DNS.Cache.Clear());
|
||||
await Task.Run(() =>
|
||||
{
|
||||
NativeMethods.FlushDNSResolverCache();
|
||||
DNS.Cache.Clear();
|
||||
});
|
||||
|
||||
StatusText(i18N.Translate("DNS cache cleanup succeeded"));
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in New Issue
Block a user