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;