修复平台判断
This commit is contained in:
parent
ac7483a628
commit
e36ea87d64
@ -41,13 +41,15 @@ namespace FastGithub.Dns
|
|||||||
this.hostsValidator = hostsValidator;
|
this.hostsValidator = hostsValidator;
|
||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
|
|
||||||
if (OperatingSystem.IsWindows())
|
options.OnChange(opt =>
|
||||||
{
|
{
|
||||||
options.OnChange(opt => SystemDnsUtil.DnsFlushResolverCache());
|
if (OperatingSystem.IsWindows())
|
||||||
}
|
{
|
||||||
|
SystemDnsUtil.DnsFlushResolverCache();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 启动dns
|
/// 启动dns
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user