fixes #35
This commit is contained in:
parent
75d61207f2
commit
e49c49c892
|
@ -998,6 +998,15 @@ namespace libtorrent
|
||||||
// because of the push_back()
|
// because of the push_back()
|
||||||
i = boost::prior(m_peers.end());
|
i = boost::prior(m_peers.end());
|
||||||
if (flags & 0x02) p.seed = true;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -560,7 +560,7 @@ namespace libtorrent { namespace detail
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_DHT
|
#ifndef TORRENT_DISABLE_DHT
|
||||||
void session_impl::add_dht_node(udp::endpoint n)
|
void session_impl::add_dht_node(udp::endpoint n)
|
||||||
{
|
{
|
||||||
if (m_dht) m_dht->add_node(n);
|
if (m_dht) m_dht->add_node(n);
|
||||||
|
|
Loading…
Reference in New Issue