anonymous mode fix (don't resolve countries, since that gives away IPs)

This commit is contained in:
Arvid Norberg 2010-08-02 06:16:32 +00:00
parent f27e24ba98
commit 6ab555659c
1 changed files with 6 additions and 1 deletions

View File

@ -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<web_seed_entry>::iterator url, tcp::endpoint proxy);
void connect_web_seed(std::list<web_seed_entry>::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