fix to count loopback connections as local peers

This commit is contained in:
Arvid Norberg 2008-01-11 05:40:19 +00:00
parent a8f07edffa
commit 616a48b591
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} }