fix to count loopback connections as local peers
This commit is contained in:
parent
a8f07edffa
commit
616a48b591
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue