include the IP we actually connected to when reporting the IPs of the tracker

This commit is contained in:
Arvid Norberg 2010-12-26 22:36:18 +00:00
parent fc0bd8066b
commit 40e1bea451
1 changed files with 2 additions and 0 deletions

View File

@ -519,6 +519,8 @@ namespace libtorrent
std::list<address> ip_list;
if (m_tracker_connection)
{
error_code ec;
ip_list.push_back(m_tracker_connection->socket().remote_endpoint(ec).address());
std::list<tcp::endpoint> const& epts = m_tracker_connection->endpoints();
for (std::list<tcp::endpoint>::const_iterator i = epts.begin()
, end(epts.end()); i != end; ++i)