disabled loopback for upnp

This commit is contained in:
Arvid Norberg
2007-09-18 01:25:28 +00:00
parent 2661f834fd
commit fbac9f785a
3 changed files with 5 additions and 4 deletions

View File

@@ -69,7 +69,8 @@ namespace libtorrent
broadcast_socket::broadcast_socket(asio::io_service& ios
, udp::endpoint const& multicast_endpoint
, receive_handler_t const& handler)
, receive_handler_t const& handler
, bool loopback)
: m_multicast_endpoint(multicast_endpoint)
, m_on_receive(handler)
{
@@ -102,7 +103,7 @@ namespace libtorrent
if (ec) continue;
s->set_option(hops(255), ec);
if (ec) continue;
s->set_option(enable_loopback(true), ec);
s->set_option(enable_loopback(loopback), ec);
if (ec) continue;
m_sockets.push_back(socket_entry(s));
socket_entry& se = m_sockets.back();