Use link-local multicast on Mac OS.

This commit is contained in:
Christopher Kohlhoff 2014-05-04 08:57:50 +10:00
parent d3aa157a71
commit 8c37a7c20b

View File

@ -145,8 +145,13 @@ void test()
#endif // defined(ASIO_WINDOWS) && defined(UNDER_CE)
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__)
ASIO_CHECK(!have_v6 || !ec);
// join_group class.