summaryrefslogtreecommitdiff
path: root/demoscript/Ice/multicast.py
diff options
context:
space:
mode:
Diffstat (limited to 'demoscript/Ice/multicast.py')
-rw-r--r--demoscript/Ice/multicast.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/demoscript/Ice/multicast.py b/demoscript/Ice/multicast.py
index ddb6a97d7b8..e3c4dbaec56 100644
--- a/demoscript/Ice/multicast.py
+++ b/demoscript/Ice/multicast.py
@@ -73,10 +73,14 @@ def run(clientCmd, serverCmd):
sys.stdout.flush()
#
- # On OS X, using the interface-local address doesn't work, the client fails with
- # a "Host not reachable" error, instead we use a link-local address with on loopback.
+ # 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.
#
- endpoint = 'udp -h \\"ff15::1:1\\" -p 10000'
+ if Util.isDarwin():
+ endpoint = 'udp -h \\"ff02::1:1\\" -p 10000 --interface \\"::1\\"'
+ else:
+ endpoint = 'udp -h \\"ff15::1:1\\" -p 10000'
serverCmd += ' --Ice.IPv6=1 --Discover.Endpoints="%s"' % (endpoint)
clientCmd += ' --Ice.IPv6=1 --Discover.Proxy="discover:%s"' % (endpoint)