forked from premiere/premiere-libtorrent
anonymous mode fix (don't resolve countries, since that gives away IPs)
This commit is contained in:
parent
f27e24ba98
commit
6ab555659c
|
@ -333,7 +333,10 @@ namespace libtorrent
|
||||||
void resolve_countries(bool r)
|
void resolve_countries(bool r)
|
||||||
{ m_resolve_countries = 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
|
#endif
|
||||||
|
|
||||||
// --------------------------------------------
|
// --------------------------------------------
|
||||||
|
@ -604,6 +607,8 @@ namespace libtorrent
|
||||||
void on_name_lookup(error_code const& e, tcp::resolver::iterator i
|
void on_name_lookup(error_code const& e, tcp::resolver::iterator i
|
||||||
, std::list<web_seed_entry>::iterator url, tcp::endpoint proxy);
|
, 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
|
// this is the asio callback that is called when a name
|
||||||
// lookup for a proxy for a web seed is completed.
|
// lookup for a proxy for a web seed is completed.
|
||||||
void on_proxy_name_lookup(error_code const& e, tcp::resolver::iterator i
|
void on_proxy_name_lookup(error_code const& e, tcp::resolver::iterator i
|
||||||
|
|
Loading…
Reference in New Issue