mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
try to reseed if no compatible routers in netdb
This commit is contained in:
parent
44e4ec573d
commit
765ab60753
1 changed files with 3 additions and 1 deletions
|
@ -57,6 +57,8 @@ 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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue