diff --git a/FastGithub.Dns/HostsConflictSolver.cs b/FastGithub.Dns/HostsConflictSolver.cs index 362d96a..ce1805c 100644 --- a/FastGithub.Dns/HostsConflictSolver.cs +++ b/FastGithub.Dns/HostsConflictSolver.cs @@ -20,8 +20,7 @@ namespace FastGithub.Dns /// host文件冲解决者 /// /// - public HostsConflictSolver( - FastGithubConfig fastGithubConfig) + public HostsConflictSolver(FastGithubConfig fastGithubConfig) { this.fastGithubConfig = fastGithubConfig; } diff --git a/FastGithub.Dns/ProxyConflictSolver.cs b/FastGithub.Dns/ProxyConflictSolver.cs index c50ac73..c51727c 100644 --- a/FastGithub.Dns/ProxyConflictSolver.cs +++ b/FastGithub.Dns/ProxyConflictSolver.cs @@ -119,7 +119,7 @@ namespace FastGithub.Dns var proxyServer = HttpClient.DefaultProxy.GetProxy(destination); if (proxyServer != null) { - this.logger.LogError($"由于系统配置了{proxyServer}代理{domain},{nameof(FastGithub)}无法加速相关域名"); + this.logger.LogError($"由于系统配置了代理{proxyServer},{nameof(FastGithub)}无法加速{domain}"); } } } diff --git a/FastGithub/AppHostedService.cs b/FastGithub/AppHostedService.cs index 37ba123..38f00d9 100644 --- a/FastGithub/AppHostedService.cs +++ b/FastGithub/AppHostedService.cs @@ -62,7 +62,8 @@ namespace FastGithub await Task.Delay(TimeSpan.FromSeconds(1d), stoppingToken); if (await this.UseFastGithubProxyAsync() == false) { - this.logger.LogWarning($"请设置系统自动代理为http://127.0.0.1:38457,或手动代理http/https为127.0.0.1:38457"); + var httpProxyPort = this.options.Value.HttpProxyPort; + this.logger.LogWarning($"请设置系统自动代理为http://{IPAddress.Loopback}:{httpProxyPort},或手动代理http/https为{IPAddress.Loopback}:{httpProxyPort}"); } } }