Browse Source

check transport compatibility with peer before connecting

pull/1634/head
orignal 4 years ago
parent
commit
33b82b5669
  1. 1
      libi2pd/Transports.cpp

1
libi2pd/Transports.cpp

@ -351,6 +351,7 @@ namespace transport @@ -351,6 +351,7 @@ namespace transport
try
{
auto r = netdb.FindRouter (ident);
if (!r || !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