merged IPV6_V6ONLY fix from RC_0_16

This commit is contained in:
Arvid Norberg
2012-11-19 04:58:46 +00:00
parent 77a1090104
commit d2f72f50cc
3 changed files with 8 additions and 0 deletions

View File

@@ -2133,7 +2133,9 @@ namespace aux {
if (ep.protocol() == tcp::v6())
{
error_code err; // ignore errors here
#ifdef IPV6_V6ONLY
s->sock->set_option(v6only(v6_only), err);
#endif
#ifdef TORRENT_WINDOWS
#ifndef PROTECTION_LEVEL_UNRESTRICTED