This commit is contained in:
Arvid Norberg 2007-04-17 23:06:00 +00:00
parent 75d61207f2
commit e49c49c892
2 changed files with 10 additions and 1 deletions

View File

@ -998,6 +998,15 @@ namespace libtorrent
// because of the push_back()
i = boost::prior(m_peers.end());
if (flags & 0x02) p.seed = true;
// try to send a DHT ping to this peer
// as well, to figure out if it supports
// DHT (uTorrent and BitComet doesn't
// advertise support)
#ifndef TORRENT_DISABLE_DHT
udp::endpoint node(remote.address(), remote.port());
m_torrent->session().add_dht_node(node);
#endif
}
else
{

View File

@ -560,7 +560,7 @@ namespace libtorrent { namespace detail
}
#endif
#ifndef TORRENT_DISABLE_DHT
#ifndef TORRENT_DISABLE_DHT
void session_impl::add_dht_node(udp::endpoint n)
{
if (m_dht) m_dht->add_node(n);