From 765ab60753690a0f2dffd112fd19d9199e9120da Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 10 Feb 2021 15:27:13 -0500 Subject: [PATCH] try to reseed if no compatible routers in netdb --- libi2pd/NetDb.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libi2pd/NetDb.cpp b/libi2pd/NetDb.cpp index c3e33411..0222ccdf 100644 --- a/libi2pd/NetDb.cpp +++ b/libi2pd/NetDb.cpp @@ -57,7 +57,9 @@ namespace data uint16_t threshold; i2p::config::GetOption("reseed.threshold", threshold); if (m_RouterInfos.size () < threshold) // reseed if # of router less than threshold Reseed (); - + else if (!GetRandomRouter (i2p::context.GetSharedRouterInfo ())) + Reseed (); // we don't have a router we can connect to. Trying to reseed + i2p::config::GetOption("persist.profiles", m_PersistProfiles); m_IsRunning = true;