Browse Source

don't try to send to unreachable router

pull/1638/head
orignal 4 years ago
parent
commit
fbe83f729d
  1. 2
      libi2pd/Transports.cpp

2
libi2pd/Transports.cpp

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

Loading…
Cancel
Save