windows only

This commit is contained in:
陈国伟 2021-11-06 12:14:33 +08:00
parent 3676caf118
commit e20bf32427

View File

@ -79,8 +79,9 @@ namespace FastGithub.HttpServer
}
// 未配置的域名但仍然被解析到本机ip的域名
if (host.Host.Contains('.') == true)
if (OperatingSystem.IsWindows() && host.Host.Contains('.'))
{
this.logger.LogWarning($"域名{host.Host}可能已经被DNS污染");
domainConfig = defaultDomainConfig;
return true;
}