forked from premiere/premiere-libtorrent
the simulator always supports IPv6
This commit is contained in:
parent
ef1f399fd3
commit
1bd706ac14
|
@ -147,11 +147,11 @@ namespace libtorrent
|
||||||
|
|
||||||
bool supports_ipv6()
|
bool supports_ipv6()
|
||||||
{
|
{
|
||||||
#if defined TORRENT_BUILD_SIMULATOR || !TORRENT_USE_IPV6
|
#if !TORRENT_USE_IPV6
|
||||||
return false;
|
return false;
|
||||||
#else
|
#elif defined TORRENT_BUILD_SIMULATOR
|
||||||
|
return true;
|
||||||
#ifdef TORRENT_WINDOWS
|
#elif defined TORRENT_WINDOWS
|
||||||
TORRENT_TRY {
|
TORRENT_TRY {
|
||||||
error_code ec;
|
error_code ec;
|
||||||
address::from_string("::1", ec);
|
address::from_string("::1", ec);
|
||||||
|
@ -163,8 +163,6 @@ namespace libtorrent
|
||||||
error_code ec;
|
error_code ec;
|
||||||
test.open(tcp::v6(), ec);
|
test.open(tcp::v6(), ec);
|
||||||
return !bool(ec);
|
return !bool(ec);
|
||||||
#endif // WINDOWS
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue