diff options
Diffstat (limited to 'csharp/src/IceDiscovery/PluginI.cs')
-rw-r--r-- | csharp/src/IceDiscovery/PluginI.cs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/csharp/src/IceDiscovery/PluginI.cs b/csharp/src/IceDiscovery/PluginI.cs index 0c09c4884a7..69e3a6c0667 100644 --- a/csharp/src/IceDiscovery/PluginI.cs +++ b/csharp/src/IceDiscovery/PluginI.cs @@ -12,7 +12,6 @@ namespace IceDiscovery using System; using System.Text; using System.Collections.Generic; - using System.Net; public sealed class PluginFactory : Ice.PluginFactory { @@ -48,27 +47,6 @@ namespace IceDiscovery } int port = properties.getPropertyAsIntWithDefault("IceDiscovery.Port", 4061); string intf = properties.getProperty("IceDiscovery.Interface"); - string defaultHost = properties.getProperty("Ice.Default.Host"); - if(intf.Length == 0 && defaultHost.Length > 0) - { - // - // Make sure the interface is an IP address, the UDP --interface option - // doesn't support DNS names. - // - int protocol = ipv4 && !preferIPv6 ? IceInternal.Network.EnableIPv4 : IceInternal.Network.EnableIPv6; - try - { - EndPoint addr = IceInternal.Network.getAddressForServer(defaultHost, 0, protocol, preferIPv6); - if(addr != null) - { - intf = IceInternal.Network.endpointAddressToString(addr); - } - } - catch(Ice.LocalException) - { - // Ignore - } - } if(properties.getProperty("IceDiscovery.Multicast.Endpoints").Length == 0) { |