diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index fdbfc8471..ad318c0b4 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -2139,7 +2139,8 @@ namespace libtorrent 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; }