From 8c701618a42fc6c08456e53154bac1a1d40f9534 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Mon, 27 Oct 2014 19:11:20 +0100 Subject: Fixed IceDiscovery and IceGridDiscovery to check for Ice.PreferIPv6Address to configure UDP --- cpp/src/IceDiscovery/PluginI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/IceDiscovery/PluginI.cpp') diff --git a/cpp/src/IceDiscovery/PluginI.cpp b/cpp/src/IceDiscovery/PluginI.cpp index 88c2bb91ba5..60bdf42e9a4 100644 --- a/cpp/src/IceDiscovery/PluginI.cpp +++ b/cpp/src/IceDiscovery/PluginI.cpp @@ -41,8 +41,9 @@ PluginI::initialize() Ice::PropertiesPtr properties = _communicator->getProperties(); bool ipv4 = properties->getPropertyAsIntWithDefault("Ice.IPv4", 1) > 0; + bool preferIPv6 = properties->getPropertyAsInt("Ice.PreferIPv6Address") > 0; string address; - if(ipv4) + if(ipv4 && !preferIPv6) { address = properties->getPropertyWithDefault("IceDiscovery.Address", "239.255.0.1"); } -- cgit v1.2.3