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