1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-13 15:27:52 +00:00

Correct processing of reseed.floodfill option

This commit is contained in:
Vort 2023-03-03 21:26:38 +02:00
parent 4db643aa8e
commit 6610af08c2

View File

@ -431,8 +431,8 @@ namespace data
} }
// try reseeding from floodfill first if specified // try reseeding from floodfill first if specified
std::string riPath; std::string riPath; i2p::config::GetOption("reseed.floodfill", riPath);
if(i2p::config::GetOption("reseed.floodfill", riPath)) if (!riPath.empty())
{ {
auto ri = std::make_shared<RouterInfo>(riPath); auto ri = std::make_shared<RouterInfo>(riPath);
if (ri->IsFloodfill()) if (ri->IsFloodfill())