don't lookup country for local IPs
This commit is contained in:
parent
95d4c3af5d
commit
69e0249317
|
@ -3424,6 +3424,7 @@ namespace libtorrent
|
||||||
void torrent::resolve_peer_country(boost::intrusive_ptr<peer_connection> const& p) const
|
void torrent::resolve_peer_country(boost::intrusive_ptr<peer_connection> const& p) const
|
||||||
{
|
{
|
||||||
if (m_resolving_country
|
if (m_resolving_country
|
||||||
|
|| is_local(p->remote().address())
|
||||||
|| p->has_country()
|
|| p->has_country()
|
||||||
|| p->is_connecting()
|
|| p->is_connecting()
|
||||||
|| p->is_queued()
|
|| p->is_queued()
|
||||||
|
|
Loading…
Reference in New Issue