mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
try to reseed if no compatible routers in netdb
This commit is contained in:
parent
44e4ec573d
commit
765ab60753
@ -57,7 +57,9 @@ namespace data
|
|||||||
uint16_t threshold; i2p::config::GetOption("reseed.threshold", threshold);
|
uint16_t threshold; i2p::config::GetOption("reseed.threshold", threshold);
|
||||||
if (m_RouterInfos.size () < threshold) // reseed if # of router less than threshold
|
if (m_RouterInfos.size () < threshold) // reseed if # of router less than threshold
|
||||||
Reseed ();
|
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);
|
i2p::config::GetOption("persist.profiles", m_PersistProfiles);
|
||||||
|
|
||||||
m_IsRunning = true;
|
m_IsRunning = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user