From 40e1bea451d4e6d42612b6211cb9204a3fdfc328 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 26 Dec 2010 22:36:18 +0000 Subject: [PATCH] include the IP we actually connected to when reporting the IPs of the tracker --- src/http_tracker_connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http_tracker_connection.cpp b/src/http_tracker_connection.cpp index eeb81965b..171811909 100644 --- a/src/http_tracker_connection.cpp +++ b/src/http_tracker_connection.cpp @@ -519,6 +519,8 @@ namespace libtorrent std::list
ip_list; if (m_tracker_connection) { + error_code ec; + ip_list.push_back(m_tracker_connection->socket().remote_endpoint(ec).address()); std::list const& epts = m_tracker_connection->endpoints(); for (std::list::const_iterator i = epts.begin() , end(epts.end()); i != end; ++i)