add compile time option to disable IPv6 support

This commit is contained in:
Arvid Norberg
2009-03-31 07:45:54 +00:00
parent c85846a240
commit 1a6d2f86b9
5 changed files with 35 additions and 3 deletions

View File

@@ -725,6 +725,7 @@ namespace aux {
async_accept(s.sock);
}
#if TORRENT_USE_IPV6
#ifdef TORRENT_WINDOWS
// only try to open the IPv6 port if IPv6 is installed
SOCKADDR_STORAGE storage;
@@ -746,6 +747,7 @@ namespace aux {
#ifdef TORRENT_WINDOWS
}
#endif
#endif // TORRENT_USE_IPV6
}
else
{