Browse Source

don't set unrechable for routers without published addresses

pull/1872/head
orignal 2 years ago
parent
commit
d30d1e8a7d
  1. 3
      libi2pd/Transports.cpp

3
libi2pd/Transports.cpp

@ -539,7 +539,8 @@ namespace transport @@ -539,7 +539,8 @@ namespace transport
}
LogPrint (eLogInfo, "Transports: No compatible addresses available");
i2p::data::netdb.SetUnreachable (ident, true); // we are here because all connection attempts failed
if (peer.router->IsReachableFrom (i2p::context.GetRouterInfo ()))
i2p::data::netdb.SetUnreachable (ident, true); // we are here because all connection attempts failed but router claimed them
peer.Done ();
std::unique_lock<std::mutex> l(m_PeersMutex);
m_Peers.erase (ident);

Loading…
Cancel
Save