don't send ipv4 and ipv6 to trackers

This commit is contained in:
Arvid Norberg 2013-02-24 01:00:20 +00:00
parent bf3b874cb4
commit 6faec32ebc
3 changed files with 0 additions and 22 deletions

View File

@ -127,8 +127,6 @@ namespace libtorrent
std::string trackerid; std::string trackerid;
int key; int key;
int num_want; int num_want;
std::string ipv6;
std::string ipv4;
address bind_ip; address bind_ip;
bool send_stats; bool send_stats;
bool apply_ip_filter; bool apply_ip_filter;

View File

@ -206,18 +206,6 @@ namespace libtorrent
// source IP to determine our origin // source IP to determine our origin
url += "&ip=" + print_address(m_ses.listen_address()); url += "&ip=" + print_address(m_ses.listen_address());
} }
if (!tracker_req().ipv6.empty() && !i2p)
{
url += "&ipv6=";
url += tracker_req().ipv6;
}
if (!tracker_req().ipv4.empty() && !i2p)
{
url += "&ipv4=";
url += tracker_req().ipv4;
}
} }
} }

View File

@ -2335,14 +2335,6 @@ namespace libtorrent
req.event = e; req.event = e;
error_code ec; error_code ec;
if (!m_ses.m_settings.anonymous_mode)
{
tcp::endpoint ep;
ep = m_ses.get_ipv6_interface();
if (ep != tcp::endpoint()) req.ipv6 = ep.address().to_string(ec);
ep = m_ses.get_ipv4_interface();
if (ep != tcp::endpoint()) req.ipv4 = ep.address().to_string(ec);
}
// if we are aborting. we don't want any new peers // if we are aborting. we don't want any new peers
req.num_want = (req.event == tracker_request::stopped) req.num_want = (req.event == tracker_request::stopped)