调用TTL为5分钟,减少浏览器的dns查询
This commit is contained in:
parent
d065fc7621
commit
8cf0dc53ef
@ -27,7 +27,7 @@ namespace FastGithub.PacketIntercept.Dns
|
|||||||
private readonly FastGithubConfig fastGithubConfig;
|
private readonly FastGithubConfig fastGithubConfig;
|
||||||
private readonly ILogger<DnsInterceptor> logger;
|
private readonly ILogger<DnsInterceptor> logger;
|
||||||
|
|
||||||
private readonly TimeSpan ttl = TimeSpan.FromMinutes(1d);
|
private readonly TimeSpan ttl = TimeSpan.FromMinutes(5d);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 刷新DNS缓存
|
/// 刷新DNS缓存
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user