From 3aa64f9ed37e5294b354b76d150911e82bca512b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Fri, 17 Sep 2021 11:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ttl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Dns/DnsInterceptor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FastGithub.Dns/DnsInterceptor.cs b/FastGithub.Dns/DnsInterceptor.cs index 614a6d1..5a40a6f 100644 --- a/FastGithub.Dns/DnsInterceptor.cs +++ b/FastGithub.Dns/DnsInterceptor.cs @@ -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 logger; - private readonly TimeSpan ttl = TimeSpan.FromSeconds(10d); + private readonly TimeSpan ttl = TimeSpan.FromMinutes(1d); /// /// 刷新DNS缓存