diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index 2ae20d86b..8f16ea83b 100644 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -333,7 +333,10 @@ namespace libtorrent void resolve_countries(bool r) { m_resolve_countries = r; } - bool resolving_countries() const { return m_resolve_countries; } + bool resolving_countries() const + { + return m_resolve_countries && !m_ses.settings().anonymous_mode; + } #endif // -------------------------------------------- @@ -604,6 +607,8 @@ 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); + // this is the asio callback that is called when a name // lookup for a proxy for a web seed is completed. void on_proxy_name_lookup(error_code const& e, tcp::resolver::iterator i