diff options
author | Marcos Pinto <markybob@dipconsultants.com> | 2007-11-19 18:21:36 +0000 |
---|---|---|
committer | Marcos Pinto <markybob@dipconsultants.com> | 2007-11-19 18:21:36 +0000 |
commit | 7b6ece4a2c42a429c4cb558ecc56e41848d26538 (patch) | |
tree | f7d00b4543da99395385e2f058c68ab46fa20ab2 | |
parent | a0b2638ffbae12427b7cc371c80ad5f00a5a426b (diff) | |
download | deluge-7b6ece4a2c42a429c4cb558ecc56e41848d26538.tar.gz deluge-7b6ece4a2c42a429c4cb558ecc56e41848d26538.tar.bz2 deluge-7b6ece4a2c42a429c4cb558ecc56e41848d26538.zip |
lt update
-rwxr-xr-x | libtorrent/src/session_impl.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libtorrent/src/session_impl.cpp b/libtorrent/src/session_impl.cpp index 3132b80c9..9b3e667a5 100755 --- a/libtorrent/src/session_impl.cpp +++ b/libtorrent/src/session_impl.cpp @@ -1028,7 +1028,6 @@ namespace detail async_accept(listener); // we got a connection request! - m_incoming_connection = true; tcp::endpoint endp = s->remote_endpoint(ec); if (ec) @@ -1043,6 +1042,14 @@ namespace detail #if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) (*m_logger) << endp << " <== INCOMING CONNECTION\n"; #endif + + // local addresses do not count, since it's likely + // coming from our own client through local service discovery + // and it does not reflect whether or not a router is open + // for incoming connections or not. + if (!is_local(endp.address())) + m_incoming_connection = true; + if (m_ip_filter.access(endp.address()) & ip_filter::blocked) { #if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) |