From d263526246023143a76d87dfa246c48bc4c4e30d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 9 Jun 2009 16:33:10 +0000 Subject: [PATCH] make incoming connections considered connectable when they tell us their listen port --- src/policy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/policy.cpp b/src/policy.cpp index 8d7b99b89..97f7a1652 100644 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -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)) {