Updating reseed host list (Since updated the java version as well)

This commit is contained in:
Meeh 2014-07-22 20:00:00 +02:00
parent 1fc41e2fa9
commit c21adbe3ae

View File

@ -35,7 +35,8 @@ namespace data
"https://i2p.mooo.com/netDb/", "https://i2p.mooo.com/netDb/",
"https://reseed.info/", "https://reseed.info/",
"https://i2p-netdb.innovatio.no/", "https://i2p-netdb.innovatio.no/",
"https://ieb9oopo.mooo.com" "https://ieb9oopo.mooo.com/",
"https://ssl.webpack.de/ivae2he9.sg4.e-plaza.de/" // Only HTTPS and SU3 (v2) support
}; };
//TODO: Implement v2 reseeding. Lightweight zip library is needed. //TODO: Implement v2 reseeding. Lightweight zip library is needed.
@ -52,6 +53,15 @@ namespace data
{ {
try try
{ {
// Seems like the best place to try to intercept with SSL
/*ssl_server = true;
try {
// SSL
}
catch (std::exception& e)
{
LogPrint("Exception in SSL: ", e.what());
}*/
std::string reseedHost = httpReseedHostList[(rand() % httpReseedHostList.size())]; std::string reseedHost = httpReseedHostList[(rand() % httpReseedHostList.size())];
LogPrint("Reseeding from ", reseedHost); LogPrint("Reseeding from ", reseedHost);
std::string content = i2p::util::http::httpRequest(reseedHost); std::string content = i2p::util::http::httpRequest(reseedHost);