diff --git a/FastGithub.HttpServer/HttpProxyMiddleware.cs b/FastGithub.HttpServer/HttpProxyMiddleware.cs index 1cfd231..fae6ebd 100644 --- a/FastGithub.HttpServer/HttpProxyMiddleware.cs +++ b/FastGithub.HttpServer/HttpProxyMiddleware.cs @@ -145,8 +145,8 @@ namespace FastGithub.HttpServer return new DnsEndPoint(targetHost, targetPort); } - // 目标端口为443,走https代理中间人 - if (targetPort == HTTPS_PORT) + // 目标端口为443,走https代理中间人 + if (targetPort == HTTPS_PORT && targetHost != "ssh.github.com") { return new IPEndPoint(IPAddress.Loopback, HttpsReverseProxyPort.Value); } diff --git a/FastGithub/AppHostedService.cs b/FastGithub/AppHostedService.cs index dde9fc8..8cac832 100644 --- a/FastGithub/AppHostedService.cs +++ b/FastGithub/AppHostedService.cs @@ -62,7 +62,7 @@ namespace FastGithub await Task.Delay(TimeSpan.FromSeconds(1d), stoppingToken); if (await this.UseFastGithubProxyAsync() == false) { - this.logger.LogWarning($"请手工设置系统http/https代理为127.0.0.1:38457或自动代理为http://127.0.0.1:38457"); + this.logger.LogWarning($"请设置系统自动代理为http://127.0.0.1:38457,或http/https手动代理为127.0.0.1:38457"); } } } diff --git a/README.html b/README.html index ff28097..82f117d 100644 --- a/README.html +++ b/README.html @@ -380,13 +380,13 @@ code {
sudo ./fastgithub127.0.0.1:38457或自动代理为http://127.0.0.1:38457http://127.0.0.1:38457,或http/https手动代理为127.0.0.1:38457127.0.0.1:38457或自动代理为http://127.0.0.1:38457http://127.0.0.1:38457,或http/https手动代理为127.0.0.1:38457