From 2a0999cadc52e7e77297b6f7d0c76cc4bbd6ca7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Tue, 15 Jun 2021 16:46:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=93=E6=89=AB=E6=8F=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub/DnsHostedService.cs | 3 +-- FastGithub/GithubScanService.cs | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FastGithub/DnsHostedService.cs b/FastGithub/DnsHostedService.cs index 91d7e5d..3e4d0bc 100644 --- a/FastGithub/DnsHostedService.cs +++ b/FastGithub/DnsHostedService.cs @@ -44,11 +44,10 @@ namespace FastGithub var domain = question.Name.ToString(); if (domain.Contains("github", StringComparison.OrdinalIgnoreCase)) { - var ttl = TimeSpan.FromMinutes(2d); var addressArray = this.githubScanService.FindAddress(domain); foreach (var address in addressArray) { - var record = new IPAddressResourceRecord(question.Name, address, ttl); + var record = new IPAddressResourceRecord(question.Name, address); response.AnswerRecords.Add(record); } diff --git a/FastGithub/GithubScanService.cs b/FastGithub/GithubScanService.cs index 1d2dbe7..b0a2a87 100644 --- a/FastGithub/GithubScanService.cs +++ b/FastGithub/GithubScanService.cs @@ -57,6 +57,7 @@ namespace FastGithub foreach (var context in contexts) { + context.HttpElapsed = null; await this.scanDelegate(context); }