Browse Source

Adding more reseed hosts

Ignore zip files
pull/20/head
Meeh 11 years ago
parent
commit
83bd3c21ca
  1. 4
      Reseed.cpp
  2. 10
      Reseed.h
  3. 6
      util.cpp

4
Reseed.cpp

@ -40,9 +40,13 @@ namespace data @@ -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

@ -18,7 +18,15 @@ namespace data @@ -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

@ -49,11 +49,7 @@ const char* GetCharArg(const std::string& strArg, const std::string& nDefault) @@ -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…
Cancel
Save