mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
Adding more reseed hosts
Ignore zip files
This commit is contained in:
parent
5b7737ca6d
commit
83bd3c21ca
@ -40,9 +40,13 @@ namespace data
|
||||
std::string routerInfo;
|
||||
std::string tmpUrl;
|
||||
std::string filename;
|
||||
std::string ignoreFileSuffix = ".zip";
|
||||
while (i != j)
|
||||
{
|
||||
//TODO: Ugly code, try to clean up.
|
||||
name = *i++;
|
||||
if (name.find(ignoreFileSuffix)!=std::string::npos)
|
||||
continue;
|
||||
LogPrint("Downloading ", name);
|
||||
tmpUrl = reseedHost;
|
||||
tmpUrl.append(name);
|
||||
|
10
Reseed.h
10
Reseed.h
@ -18,7 +18,15 @@ namespace data
|
||||
private:
|
||||
std::vector<std::string> httpReseedHostList = {
|
||||
"http://193.150.121.66/netDb/",
|
||||
"http://netdb.i2p2.no/"
|
||||
"http://netdb.i2p2.no/",
|
||||
"http://reseed.i2p-projekt.de/",
|
||||
"http://cowpuncher.drollette.com/netdb/",
|
||||
"http://i2p.mooo.com/netDb/",
|
||||
"http://reseed.info/",
|
||||
"http://reseed.pkol.de/",
|
||||
"http://uk.reseed.i2p2.no/",
|
||||
"http://i2p-netdb.innovatio.no/",
|
||||
"http://ieb9oopo.mooo.com"
|
||||
};
|
||||
};
|
||||
|
||||
|
6
util.cpp
6
util.cpp
@ -49,11 +49,7 @@ const char* GetCharArg(const std::string& strArg, const std::string& nDefault)
|
||||
|
||||
namespace http
|
||||
{
|
||||
//const std::string& filename
|
||||
//AddRouterInfo ((uint8_t *)ss.str ().c_str (), ss.str ().size ());
|
||||
//TODO: Move to reseed.
|
||||
//TODO: Implement v1 & v2 reseeding. Lightweight zip library is needed for v2.
|
||||
// orignal: zip is part of crypto++, see implementation of DatabaseStoreMsg
|
||||
//TODO: Implement v2 reseeding. Lightweight zip library is needed.
|
||||
//TODO: Implement SU3, utils.
|
||||
std::string httpRequest(const std::string& address)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user