diff --git a/include/libtorrent/tracker_manager.hpp b/include/libtorrent/tracker_manager.hpp index 4bd67a096..0027e3f07 100644 --- a/include/libtorrent/tracker_manager.hpp +++ b/include/libtorrent/tracker_manager.hpp @@ -127,8 +127,6 @@ namespace libtorrent std::string trackerid; int key; int num_want; - std::string ipv6; - std::string ipv4; address bind_ip; bool send_stats; bool apply_ip_filter; diff --git a/src/http_tracker_connection.cpp b/src/http_tracker_connection.cpp index 33f013cdf..378ce5914 100644 --- a/src/http_tracker_connection.cpp +++ b/src/http_tracker_connection.cpp @@ -206,18 +206,6 @@ namespace libtorrent // source IP to determine our origin 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; - } } } diff --git a/src/torrent.cpp b/src/torrent.cpp index 30e08fced..5f61aafaf 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2335,14 +2335,6 @@ namespace libtorrent req.event = e; 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 req.num_want = (req.event == tracker_request::stopped)