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
1 changed files with 1 additions and 0 deletions

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))
{