From bd4133aa2c961e09c9508430ab177a99421918b1 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Sat, 24 Jul 2021 04:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Directory.Build.props | 2 +- FastGithub.Dns/DnsServerHostedService.cs | 4 ++-- FastGithub.Dns/DnsServerServiceCollectionExtensions.cs | 2 +- .../{HostsValidator.cs => HostsFileValidator.cs} | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) rename FastGithub.Dns/{HostsValidator.cs => HostsFileValidator.cs} (94%) diff --git a/Directory.Build.props b/Directory.Build.props index c6e124d..fe794ee 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 1.0.7 + 1.0.8 enable github加速神器 https://github.com/xljiulang/FastGithub diff --git a/FastGithub.Dns/DnsServerHostedService.cs b/FastGithub.Dns/DnsServerHostedService.cs index 6d9b40b..ede083a 100644 --- a/FastGithub.Dns/DnsServerHostedService.cs +++ b/FastGithub.Dns/DnsServerHostedService.cs @@ -17,7 +17,7 @@ namespace FastGithub.Dns sealed class DnsServerHostedService : BackgroundService { private readonly RequestResolver requestResolver; - private readonly HostsValidator hostsValidator; + private readonly HostsFileValidator hostsValidator; private readonly ILogger logger; private readonly Socket socket = new(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); @@ -33,7 +33,7 @@ namespace FastGithub.Dns /// public DnsServerHostedService( RequestResolver requestResolver, - HostsValidator hostsValidator, + HostsFileValidator hostsValidator, IOptionsMonitor options, ILogger logger) { diff --git a/FastGithub.Dns/DnsServerServiceCollectionExtensions.cs b/FastGithub.Dns/DnsServerServiceCollectionExtensions.cs index 7ab8f2e..6dad648 100644 --- a/FastGithub.Dns/DnsServerServiceCollectionExtensions.cs +++ b/FastGithub.Dns/DnsServerServiceCollectionExtensions.cs @@ -17,7 +17,7 @@ namespace FastGithub { return services .AddSingleton() - .AddSingleton() + .AddSingleton() .AddHostedService(); } } diff --git a/FastGithub.Dns/HostsValidator.cs b/FastGithub.Dns/HostsFileValidator.cs similarity index 94% rename from FastGithub.Dns/HostsValidator.cs rename to FastGithub.Dns/HostsFileValidator.cs index 12aee1a..4364955 100644 --- a/FastGithub.Dns/HostsValidator.cs +++ b/FastGithub.Dns/HostsFileValidator.cs @@ -12,19 +12,19 @@ namespace FastGithub.Dns /// /// host文件配置验证器 /// - sealed class HostsValidator + sealed class HostsFileValidator { private readonly FastGithubConfig fastGithubConfig; - private readonly ILogger logger; + private readonly ILogger logger; /// /// host文件配置验证器 /// /// /// - public HostsValidator( + public HostsFileValidator( FastGithubConfig fastGithubConfig, - ILogger logger) + ILogger logger) { this.fastGithubConfig = fastGithubConfig; this.logger = logger;