Browse Source

never delete conneted router from netdb

pull/2030/head
orignal 10 months ago
parent
commit
ca45fe73e9
  1. 5
      libi2pd/NetDb.cpp

5
libi2pd/NetDb.cpp

@ -672,9 +672,10 @@ namespace data @@ -672,9 +672,10 @@ namespace data
(CreateRoutingKey (it.second->GetIdentHash ()) ^ i2p::context.GetIdentHash ()).metric[0] >= 0x02)) // different first 7 bits
it.second->SetUnreachable (true);
}
if (it.second->IsUnreachable () && i2p::transport::transports.IsConnected (it.second->GetIdentHash ()))
it.second->SetUnreachable (false); // don't expire connected router
}
// make router reachable back if connected now
if (it.second->IsUnreachable () && i2p::transport::transports.IsConnected (it.second->GetIdentHash ()))
it.second->SetUnreachable (false);
if (it.second->IsUnreachable ())
{

Loading…
Cancel
Save