Explorar o código

调用TTL为5分钟,减少浏览器的dns查询

老九 %!s(int64=3) %!d(string=hai) anos
pai
achega
8cf0dc53ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      FastGithub.PacketIntercept/Dns/DnsInterceptor.cs

+ 1 - 1
FastGithub.PacketIntercept/Dns/DnsInterceptor.cs

@@ -27,7 +27,7 @@ namespace FastGithub.PacketIntercept.Dns
         private readonly FastGithubConfig fastGithubConfig;
         private readonly ILogger<DnsInterceptor> logger;
 
-        private readonly TimeSpan ttl = TimeSpan.FromMinutes(1d);
+        private readonly TimeSpan ttl = TimeSpan.FromMinutes(5d);
 
         /// <summary>
         /// 刷新DNS缓存