mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
never delete conneted router from netdb
This commit is contained in:
parent
a8af683643
commit
ca45fe73e9
@ -672,10 +672,11 @@ namespace data
|
|||||||
(CreateRoutingKey (it.second->GetIdentHash ()) ^ i2p::context.GetIdentHash ()).metric[0] >= 0x02)) // different first 7 bits
|
(CreateRoutingKey (it.second->GetIdentHash ()) ^ i2p::context.GetIdentHash ()).metric[0] >= 0x02)) // different first 7 bits
|
||||||
it.second->SetUnreachable (true);
|
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 ())
|
if (it.second->IsUnreachable ())
|
||||||
{
|
{
|
||||||
if (it.second->IsFloodfill ()) deletedFloodfillsCount++;
|
if (it.second->IsFloodfill ()) deletedFloodfillsCount++;
|
||||||
|
Loading…
Reference in New Issue
Block a user