修改dns缓存时间为10min
This commit is contained in:
parent
e6517717d4
commit
cc51658208
@ -25,13 +25,14 @@ namespace FastGithub.PacketIntercept.Dns
|
||||
private const string DNS_FILTER = "udp.DstPort == 53";
|
||||
private readonly FastGithubConfig fastGithubConfig;
|
||||
private readonly ILogger<DnsInterceptor> logger;
|
||||
private readonly TimeSpan ttl = TimeSpan.FromMinutes(2d);
|
||||
private readonly TimeSpan ttl = TimeSpan.FromMinutes(10d);
|
||||
|
||||
/// <summary>
|
||||
/// 刷新DNS缓存
|
||||
/// </summary>
|
||||
[DllImport("dnsapi.dll", EntryPoint = "DnsFlushResolverCache", SetLastError = true)]
|
||||
private static extern void DnsFlushResolverCache();
|
||||
|
||||
/// <summary>
|
||||
/// dns拦截器
|
||||
/// </summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user