修復提示語

This commit is contained in:
老九 2021-09-20 13:29:07 +08:00
parent bd56241d54
commit 4cef9ed5e7
3 changed files with 4 additions and 4 deletions

View File

@ -20,8 +20,7 @@ namespace FastGithub.Dns
/// host文件冲解决者 /// host文件冲解决者
/// </summary> /// </summary>
/// <param name="fastGithubConfig"></param> /// <param name="fastGithubConfig"></param>
public HostsConflictSolver( public HostsConflictSolver(FastGithubConfig fastGithubConfig)
FastGithubConfig fastGithubConfig)
{ {
this.fastGithubConfig = fastGithubConfig; this.fastGithubConfig = fastGithubConfig;
} }

View File

@ -119,7 +119,7 @@ namespace FastGithub.Dns
var proxyServer = HttpClient.DefaultProxy.GetProxy(destination); var proxyServer = HttpClient.DefaultProxy.GetProxy(destination);
if (proxyServer != null) if (proxyServer != null)
{ {
this.logger.LogError($"由于系统配置了{proxyServer}代理{domain}{nameof(FastGithub)}无法加速相关域名"); this.logger.LogError($"由于系统配置了代理{proxyServer}{nameof(FastGithub)}无法加速{domain}");
} }
} }
} }

View File

@ -62,7 +62,8 @@ namespace FastGithub
await Task.Delay(TimeSpan.FromSeconds(1d), stoppingToken); await Task.Delay(TimeSpan.FromSeconds(1d), stoppingToken);
if (await this.UseFastGithubProxyAsync() == false) 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}");
} }
} }
} }