always use SO_REUSEADDR and deprecate the flag to turn it on

This commit is contained in:
Arvid Norberg
2012-06-28 06:51:18 +00:00
parent 426f555ce0
commit 4a2c799a1a
3 changed files with 8 additions and 5 deletions

View File

@@ -2083,11 +2083,10 @@ namespace aux {
#endif
return;
}
if (flags & session::listen_reuse_address)
{
error_code err; // ignore errors here
s->sock->set_option(socket_acceptor::reuse_address(true), err);
}
error_code err; // ignore errors here
s->sock->set_option(socket_acceptor::reuse_address(true), err);
#if TORRENT_USE_IPV6
if (ep.protocol() == tcp::v6())
{