Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Sep 27, 2024
1 parent 946b8f2 commit a9f46a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions csharp/src/Ice/Internal/Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,7 @@ public static IPAddress[] getLocalAddresses(int protocol, bool singleAddressPerI
if ((uni.Address.AddressFamily == AddressFamily.InterNetwork && protocol != EnableIPv6) ||
(uni.Address.AddressFamily == AddressFamily.InterNetworkV6 && protocol != EnableIPv4))
{
if (!addresses.Contains(uni.Address) &&
(!IPAddress.IsLoopback(uni.Address)))
if (!addresses.Contains(uni.Address))
{
addresses.Add(uni.Address);
if (singleAddressPerInterface)
Expand Down

0 comments on commit a9f46a2

Please sign in to comment.