From e81c5c42c53e884e8496b1d549020068bf7d25a7 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Sun, 4 May 2014 09:43:09 +1000 Subject: [PATCH] Use link-local multicast on Mac OS. --- test/ip/multicast.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/ip/multicast.cpp b/test/ip/multicast.cpp index c9a920f5f..87e95de29 100644 --- a/test/ip/multicast.cpp +++ b/test/ip/multicast.cpp @@ -145,8 +145,13 @@ void test() #endif // defined(BOOST_ASIO_WINDOWS) && defined(UNDER_CE) BOOST_ASIO_CHECK(!have_v4 || !ec); +#if defined(__APPLE__) + const ip::address multicast_address_v6 = + ip::address::from_string("ff02::1%lo0", ec); +#else // defined(__APPLE__) const ip::address multicast_address_v6 = ip::address::from_string("ff01::1", ec); +#endif // defined(__APPLE__) BOOST_ASIO_CHECK(!have_v6 || !ec); // join_group class.