From 616a48b591f4ee1dd5f63e32cfa809e371acd9d6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 11 Jan 2008 05:40:19 +0000 Subject: [PATCH] fix to count loopback connections as local peers --- src/peer_connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }