if NTCP failed, try to send through SSU

This commit is contained in:
orignal 2014-04-05 15:44:12 -04:00
parent fb2a89cbea
commit ff9f14d7a6
2 changed files with 14 additions and 5 deletions

View file

@ -239,7 +239,7 @@ namespace i2p
// existing session not found. create new
// try NTCP first
auto address = r->GetNTCPAddress ();
if (address)
if (address && !r->IsUnreachable ())
{
auto s = new i2p::ntcp::NTCPClient (m_Service, address->host, address->port, *r);
AddNTCPSession (s);