From aba0ea7c2f6ae71fb04ba2a65cc0e647ac1c6236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Wed, 24 Nov 2021 09:21:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B6=E5=AE=83=E5=BC=82=E5=B8=B8=E4=B9=9F?= =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.DomainResolve/DnsClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FastGithub.DomainResolve/DnsClient.cs b/FastGithub.DomainResolve/DnsClient.cs index e34699e..c87478f 100644 --- a/FastGithub.DomainResolve/DnsClient.cs +++ b/FastGithub.DomainResolve/DnsClient.cs @@ -133,12 +133,12 @@ namespace FastGithub.DomainResolve catch (SocketException ex) { this.logger.LogWarning($"{endPoint.Host}@{dns}:{ex.Message}"); - return this.dnsCache.Set(key, Array.Empty(), this.maxTimeToLive); + return this.dnsCache.Set(key, Array.Empty(), this.minTimeToLive); } catch (Exception ex) { this.logger.LogWarning($"{endPoint.Host}@{dns}:{ex.Message}"); - return Array.Empty(); + return this.dnsCache.Set(key, Array.Empty(), this.minTimeToLive); } finally {