From c5b2bfb579bd273a411ca787c5905dfd6b54b3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Mon, 30 Aug 2021 09:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E6=97=B6ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Http/HttpClientHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FastGithub.Http/HttpClientHandler.cs b/FastGithub.Http/HttpClientHandler.cs index b4a8b02..acaaf40 100644 --- a/FastGithub.Http/HttpClientHandler.cs +++ b/FastGithub.Http/HttpClientHandler.cs @@ -21,7 +21,7 @@ namespace FastGithub.Http { private readonly DomainConfig domainConfig; private readonly IDomainResolver domainResolver; - private readonly TimeSpan blackIPAddressExpiration = TimeSpan.FromMinutes(10d); + private readonly TimeSpan timedOutIPAddressExpiration = TimeSpan.FromMinutes(10d); /// /// HttpClientHandler @@ -135,7 +135,7 @@ namespace FastGithub.Http if (IPAddress.TryParse(request.RequestUri.Host, out var address)) { - this.domainResolver.SetDisabled(address, this.blackIPAddressExpiration); + this.domainResolver.SetDisabled(address, this.timedOutIPAddressExpiration); } if (request.Headers.Host != null)