don't lookup country for local IPs

This commit is contained in:
Arvid Norberg 2010-02-15 07:52:32 +00:00
parent 95d4c3af5d
commit 69e0249317
1 changed files with 1 additions and 0 deletions

View File

@ -3424,6 +3424,7 @@ namespace libtorrent
void torrent::resolve_peer_country(boost::intrusive_ptr<peer_connection> const& p) const
{
if (m_resolving_country
|| is_local(p->remote().address())
|| p->has_country()
|| p->is_connecting()
|| p->is_queued()