增加IPAddress.Loopback

This commit is contained in:
xljiulang 2021-07-29 21:36:15 +08:00
parent da2993a6d9
commit 7d3dbd23ad
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<Version>1.1.1</Version> <Version>1.1.2</Version>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Description>github加速神器</Description> <Description>github加速神器</Description>
<Copyright>https://github.com/dotnetcore/FastGithub</Copyright> <Copyright>https://github.com/dotnetcore/FastGithub</Copyright>

View File

@ -189,6 +189,7 @@ namespace FastGithub
var hostName = Dns.GetHostName(); var hostName = Dns.GetHostName();
yield return hostName; yield return hostName;
yield return IPAddress.Loopback.ToString();
foreach (var address in Dns.GetHostAddresses(hostName)) foreach (var address in Dns.GetHostAddresses(hostName))
{ {