mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00: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 routerInfo;
|
||||||
std::string tmpUrl;
|
std::string tmpUrl;
|
||||||
std::string filename;
|
std::string filename;
|
||||||
|
std::string ignoreFileSuffix = ".zip";
|
||||||
while (i != j)
|
while (i != j)
|
||||||
{
|
{
|
||||||
|
//TODO: Ugly code, try to clean up.
|
||||||
name = *i++;
|
name = *i++;
|
||||||
|
if (name.find(ignoreFileSuffix)!=std::string::npos)
|
||||||
|
continue;
|
||||||
LogPrint("Downloading ", name);
|
LogPrint("Downloading ", name);
|
||||||
tmpUrl = reseedHost;
|
tmpUrl = reseedHost;
|
||||||
tmpUrl.append(name);
|
tmpUrl.append(name);
|
||||||
|
10
Reseed.h
10
Reseed.h
@ -18,7 +18,15 @@ namespace data
|
|||||||
private:
|
private:
|
||||||
std::vector<std::string> httpReseedHostList = {
|
std::vector<std::string> httpReseedHostList = {
|
||||||
"http://193.150.121.66/netDb/",
|
"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
|
namespace http
|
||||||
{
|
{
|
||||||
//const std::string& filename
|
//TODO: Implement v2 reseeding. Lightweight zip library is needed.
|
||||||
//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 SU3, utils.
|
//TODO: Implement SU3, utils.
|
||||||
std::string httpRequest(const std::string& address)
|
std::string httpRequest(const std::string& address)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user