Skip to content

Commit

Permalink
Use link-local multicast on Mac OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskohlhoff committed May 4, 2014
1 parent b4bb504 commit e81c5c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/ip/multicast.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit e81c5c4

Please sign in to comment.