diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-09-25 10:01:35 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-09-25 10:01:35 +0200 |
commit | 8abab83576457101ad40a33a8d1820a36a9ecc9a (patch) | |
tree | f6f77f338a355da728cdc33bf9b40cddc37704fc /demoscript/Ice/multicast.py | |
parent | Windows C++ test dependency fixes (diff) | |
download | ice-8abab83576457101ad40a33a8d1820a36a9ecc9a.tar.bz2 ice-8abab83576457101ad40a33a8d1820a36a9ecc9a.tar.xz ice-8abab83576457101ad40a33a8d1820a36a9ecc9a.zip |
Better fix for ICE-5526, multicast demo issue on OS X 10.9
Diffstat (limited to 'demoscript/Ice/multicast.py')
-rw-r--r-- | demoscript/Ice/multicast.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/demoscript/Ice/multicast.py b/demoscript/Ice/multicast.py index e3c4dbaec56..26db39584d0 100644 --- a/demoscript/Ice/multicast.py +++ b/demoscript/Ice/multicast.py @@ -72,15 +72,17 @@ def run(clientCmd, serverCmd): sys.stdout.write("testing multicast discovery (IPv6)... ") sys.stdout.flush() + endpoint = 'udp -h \\"ff15::1:1\\" -p 10000' # - # On OS X, using the site-local address doesn't work, the server fails with - # a "Can't assign requested address" error, instead we use a link-local address - # with on loopback. + # On OS X, if the host doesn't have global scoped IPv6 + # address, the system can't figure out the default interface + # to use when joining the multicast group. We specify it + # explicitly here to the loopback, this makes sure the demos + # work also on hosts on hosts without a global scope address. # if Util.isDarwin(): - endpoint = 'udp -h \\"ff02::1:1\\" -p 10000 --interface \\"::1\\"' - else: - endpoint = 'udp -h \\"ff15::1:1\\" -p 10000' + endpoint += ' --interface \\"::1\\"' + serverCmd += ' --Ice.IPv6=1 --Discover.Endpoints="%s"' % (endpoint) clientCmd += ' --Ice.IPv6=1 --Discover.Proxy="discover:%s"' % (endpoint) |