mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
lt update
This commit is contained in:
parent
a0b2638ffb
commit
7b6ece4a2c
1 changed files with 8 additions and 1 deletions
|
@ -1028,7 +1028,6 @@ namespace detail
|
||||||
async_accept(listener);
|
async_accept(listener);
|
||||||
|
|
||||||
// we got a connection request!
|
// we got a connection request!
|
||||||
m_incoming_connection = true;
|
|
||||||
tcp::endpoint endp = s->remote_endpoint(ec);
|
tcp::endpoint endp = s->remote_endpoint(ec);
|
||||||
|
|
||||||
if (ec)
|
if (ec)
|
||||||
|
@ -1043,6 +1042,14 @@ namespace detail
|
||||||
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
|
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
|
||||||
(*m_logger) << endp << " <== INCOMING CONNECTION\n";
|
(*m_logger) << endp << " <== INCOMING CONNECTION\n";
|
||||||
#endif
|
#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 (m_ip_filter.access(endp.address()) & ip_filter::blocked)
|
||||||
{
|
{
|
||||||
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
|
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue