fix to count loopback connections as local peers
This commit is contained in:
@@ -2139,7 +2139,8 @@ namespace libtorrent
|
|||||||
|
|
||||||
bool peer_connection::on_local_network() const
|
bool peer_connection::on_local_network() const
|
||||||
{
|
{
|
||||||
if (libtorrent::is_local(m_remote.address())) return true;
|
if (libtorrent::is_local(m_remote.address())
|
||||||
|
|| is_loopback(m_remote.address())) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user