diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index 674d36eb8..70bc65be8 100644 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -617,7 +617,7 @@ namespace libtorrent void on_name_lookup(error_code const& e, tcp::resolver::iterator i , std::list::iterator url, tcp::endpoint proxy); - void connect_web_seed(std::list::iterator web, tcp::endpoint const& a); + void connect_web_seed(std::list::iterator web, tcp::endpoint a); // this is the asio callback that is called when a name // lookup for a proxy for a web seed is completed. diff --git a/src/torrent.cpp b/src/torrent.cpp index 834522bda..c1dcd0042 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -3669,7 +3669,7 @@ namespace libtorrent connect_web_seed(web, a); } - void torrent::connect_web_seed(std::list::iterator web, tcp::endpoint const& a) + void torrent::connect_web_seed(std::list::iterator web, tcp::endpoint a) { TORRENT_ASSERT(m_ses.is_network_thread()); if (m_ses.m_ip_filter.access(a.address()) & ip_filter::blocked)