From 7ec2318bbabeec123905200c3450bcc62450fbd0 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 13 Sep 2014 14:39:01 -0400 Subject: [PATCH] don't try to connect to unreachable router from unreachable router --- SSU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SSU.cpp b/SSU.cpp index fec948c7..5bf9b63e 100644 --- a/SSU.cpp +++ b/SSU.cpp @@ -1030,7 +1030,7 @@ namespace ssu { // connect through introducer int numIntroducers = address->introducers.size (); - if (numIntroducers > 0) + if (numIntroducers > 0 && !i2p::context.GetRouterInfo ().UsesIntroducer ()) { SSUSession * introducerSession = nullptr; const i2p::data::RouterInfo::Introducer * introducer = nullptr; @@ -1064,7 +1064,7 @@ namespace ssu } else { - LogPrint ("Router is unreachable, but no introducers presented. Ignored"); + LogPrint ("Can't connect to unreachable router. ", numIntroducers ? "We are unreachable" : "No introducers presented"); m_Sessions.erase (remoteEndpoint); delete session; session = nullptr;