diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-10-27 19:11:20 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-10-27 19:11:20 +0100 |
commit | 8c701618a42fc6c08456e53154bac1a1d40f9534 (patch) | |
tree | c6683dbbd27d9d85aa9d9b139ca0e2bd175ef54d /cpp/src/IceGrid/Client.cpp | |
parent | ICE-5781: UDP test failure with IPv6 on OS X (diff) | |
download | ice-8c701618a42fc6c08456e53154bac1a1d40f9534.tar.bz2 ice-8c701618a42fc6c08456e53154bac1a1d40f9534.tar.xz ice-8c701618a42fc6c08456e53154bac1a1d40f9534.zip |
Fixed IceDiscovery and IceGridDiscovery to check for Ice.PreferIPv6Address to configure UDP
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index 6e9b51388e2..20e8fe7cdc4 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -551,7 +551,8 @@ Client::run(StringSeq& originalArgs) { bool ipv4 = properties->getPropertyAsIntWithDefault("Ice.IPv4", 1) > 0; string address; - if(ipv4) + bool preferIPv6 = properties->getPropertyAsInt("Ice.PreferIPv6Address") > 0; + if(ipv4 && !preferIPv6) { address = properties->getPropertyWithDefault("IceGridAdmin.Discovery.Address", "239.255.0.1"); } |