修改ttl

This commit is contained in:
陈国伟 2021-09-17 11:34:04 +08:00
parent 97cba44486
commit 3aa64f9ed3

View File

@ -20,10 +20,9 @@ namespace FastGithub.Dns
sealed class DnsInterceptor
{
private const string DNS_FILTER = "udp.DstPort == 53";
private const int ERROR_IO_PENDING = 997;
private readonly FastGithubConfig fastGithubConfig;
private readonly ILogger<DnsInterceptor> logger;
private readonly TimeSpan ttl = TimeSpan.FromSeconds(10d);
private readonly TimeSpan ttl = TimeSpan.FromMinutes(1d);
/// <summary>
/// 刷新DNS缓存