修改ttl
This commit is contained in:
parent
97cba44486
commit
3aa64f9ed3
@ -20,10 +20,9 @@ namespace FastGithub.Dns
|
|||||||
sealed class DnsInterceptor
|
sealed class DnsInterceptor
|
||||||
{
|
{
|
||||||
private const string DNS_FILTER = "udp.DstPort == 53";
|
private const string DNS_FILTER = "udp.DstPort == 53";
|
||||||
private const int ERROR_IO_PENDING = 997;
|
|
||||||
private readonly FastGithubConfig fastGithubConfig;
|
private readonly FastGithubConfig fastGithubConfig;
|
||||||
private readonly ILogger<DnsInterceptor> logger;
|
private readonly ILogger<DnsInterceptor> logger;
|
||||||
private readonly TimeSpan ttl = TimeSpan.FromSeconds(10d);
|
private readonly TimeSpan ttl = TimeSpan.FromMinutes(1d);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 刷新DNS缓存
|
/// 刷新DNS缓存
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user