diff options
Diffstat (limited to 'csharp/src/Ice/Network.cs')
-rw-r--r-- | csharp/src/Ice/Network.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/csharp/src/Ice/Network.cs b/csharp/src/Ice/Network.cs index 59f88fa3e17..247b88b0405 100644 --- a/csharp/src/Ice/Network.cs +++ b/csharp/src/Ice/Network.cs @@ -950,6 +950,11 @@ namespace IceInternal hosts.Add(a.ToString()); } } + if(hosts.Count == 0 && !includeLoopback) + { + // Return loopback if only loopback is available no other local addresses are available. + return getHostsForEndpointExpand(host, protocol, true); + } } return hosts; } |