From 4cef9ed5e72b9a0e86054d65ad40681e620e969e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E4=B9=9D?= <366193849@qq.com> Date: Mon, 20 Sep 2021 13:29:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E6=8F=90=E7=A4=BA=E8=AA=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Dns/HostsConflictSolver.cs | 3 +-- FastGithub.Dns/ProxyConflictSolver.cs | 2 +- FastGithub/AppHostedService.cs | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) 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}"); } } }