1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-02-07 07:44:13 +00:00

include https hosts to reseeder's list

This commit is contained in:
orignal 2015-02-20 15:15:23 -05:00
parent 8e795cc2aa
commit c88c6a9b63

View File

@ -123,7 +123,7 @@ namespace data
auto ind = rnd.GenerateWord32 (0, httpReseedHostList.size() - 1 + httpsReseedHostList.size () - 1); auto ind = rnd.GenerateWord32 (0, httpReseedHostList.size() - 1 + httpsReseedHostList.size () - 1);
std::string reseedHost = (ind < httpReseedHostList.size()) ? httpReseedHostList[ind] : std::string reseedHost = (ind < httpReseedHostList.size()) ? httpReseedHostList[ind] :
httpsReseedHostList[ind - httpReseedHostList.size()]; httpsReseedHostList[ind - httpReseedHostList.size()];
return ReseedFromSU3 (reseedHost); return ReseedFromSU3 (reseedHost, ind >= httpReseedHostList.size());
} }
int Reseeder::ReseedFromSU3 (const std::string& host, bool https) int Reseeder::ReseedFromSU3 (const std::string& host, bool https)