Przeglądaj źródła

修復提示語

老九 3 lat temu
rodzic
commit
4cef9ed5e7

+ 1 - 2
FastGithub.Dns/HostsConflictSolver.cs

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

+ 1 - 1
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}");
                 }
             }
         }

+ 2 - 1
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}");
                 }
             }
         }