From 1bd706ac14bea99e8d4fb784bc8014a2f09861f8 Mon Sep 17 00:00:00 2001 From: Steven Siloti Date: Thu, 12 Nov 2015 20:45:57 -0800 Subject: [PATCH] the simulator always supports IPv6 --- src/broadcast_socket.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/broadcast_socket.cpp b/src/broadcast_socket.cpp index 55e1d4778..0cc108bd4 100644 --- a/src/broadcast_socket.cpp +++ b/src/broadcast_socket.cpp @@ -147,11 +147,11 @@ namespace libtorrent bool supports_ipv6() { -#if defined TORRENT_BUILD_SIMULATOR || !TORRENT_USE_IPV6 +#if !TORRENT_USE_IPV6 return false; -#else - -#ifdef TORRENT_WINDOWS +#elif defined TORRENT_BUILD_SIMULATOR + return true; +#elif defined TORRENT_WINDOWS TORRENT_TRY { error_code ec; address::from_string("::1", ec); @@ -163,8 +163,6 @@ namespace libtorrent error_code ec; test.open(tcp::v6(), ec); return !bool(ec); -#endif // WINDOWS - #endif }