Browse Source

requsted router to send to if not in netdb

pull/1677/head
orignal 3 years ago
parent
commit
fed04c1a19
  1. 2
      libi2pd/Transports.cpp

2
libi2pd/Transports.cpp

@ -401,7 +401,7 @@ namespace transport @@ -401,7 +401,7 @@ namespace transport
try
{
auto r = netdb.FindRouter (ident);
if (!r || r->IsUnreachable () || !r->IsReachableFrom (i2p::context.GetRouterInfo ())) return;
if (r && (r->IsUnreachable () || !r->IsReachableFrom (i2p::context.GetRouterInfo ()))) return; // router found but non-reachable
{
std::unique_lock<std::mutex> l(m_PeersMutex);
it = m_Peers.insert (std::pair<i2p::data::IdentHash, Peer>(ident, { 0, r, {},

Loading…
Cancel
Save