diff --git a/FastGithub/AppHostedService.cs b/FastGithub/AppHostedService.cs index 4cb8f00..7cd58f0 100644 --- a/FastGithub/AppHostedService.cs +++ b/FastGithub/AppHostedService.cs @@ -112,13 +112,13 @@ namespace FastGithub if (IPAddress.TryParse(proxyServer.Host, out var address)) { - return address.Equals(IPAddress.Loopback); + return IPAddress.IsLoopback(address); } try { var addresses = await Dns.GetHostAddressesAsync(proxyServer.Host); - return addresses.Contains(IPAddress.Loopback); + return addresses.Any(item => IPAddress.IsLoopback(item)); } catch (Exception) {