From 7d3dbd23adaef2864c81b7b941bd5463ba2a4b77 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Thu, 29 Jul 2021 21:36:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0IPAddress.Loopback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Directory.Build.props | 2 +- FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 923f798..16e8fee 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 1.1.1 + 1.1.2 enable github加速神器 https://github.com/dotnetcore/FastGithub diff --git a/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs b/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs index 09a1253..0d4731a 100644 --- a/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs +++ b/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs @@ -189,6 +189,7 @@ namespace FastGithub var hostName = Dns.GetHostName(); yield return hostName; + yield return IPAddress.Loopback.ToString(); foreach (var address in Dns.GetHostAddresses(hostName)) {