make incoming connections considered connectable when they tell us their listen port

This commit is contained in:
Arvid Norberg
2009-06-09 16:33:10 +00:00
parent cfbcacce79
commit d263526246

View File

@@ -875,6 +875,7 @@ namespace libtorrent
bool was_conn_cand = is_connect_candidate(*p, m_finished);
p->port = port;
p->source |= src;
p->connectable = true;
if (was_conn_cand != is_connect_candidate(*p, m_finished))
{