Browse Source

mark RI as unreachable if all connections failed

pull/1441/head
orignal 5 years ago
parent
commit
651240113c
  1. 1
      libi2pd/Transports.cpp

1
libi2pd/Transports.cpp

@ -465,6 +465,7 @@ namespace transport @@ -465,6 +465,7 @@ namespace transport
}
}
LogPrint (eLogInfo, "Transports: No NTCP or SSU addresses available");
i2p::data::netdb.SetUnreachable (ident, true); // we are here because all connection attempts failed
peer.Done ();
std::unique_lock<std::mutex> l(m_PeersMutex);
m_Peers.erase (ident);

Loading…
Cancel
Save