mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
fixed compilation error in gcc 4.6
This commit is contained in:
parent
1ac95d102a
commit
8d98722b46
@ -45,7 +45,7 @@ namespace data
|
|||||||
|
|
||||||
NetDb netdb;
|
NetDb netdb;
|
||||||
|
|
||||||
NetDb::NetDb (): m_IsRunning (false), m_Thread (0)
|
NetDb::NetDb (): m_IsRunning (false), m_ReseedRetries (0), m_Thread (0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,7 +223,7 @@ namespace data
|
|||||||
if (reseed)
|
if (reseed)
|
||||||
{
|
{
|
||||||
reseeder->reseedNow();
|
reseeder->reseedNow();
|
||||||
m_reseedRetries++;
|
m_ReseedRetries++;
|
||||||
}
|
}
|
||||||
int numRouters = 0;
|
int numRouters = 0;
|
||||||
boost::filesystem::directory_iterator end;
|
boost::filesystem::directory_iterator end;
|
||||||
@ -244,7 +244,7 @@ namespace data
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
LogPrint (numRouters, " routers loaded");
|
LogPrint (numRouters, " routers loaded");
|
||||||
if (numRouters < 100 && m_reseedRetries < 10)
|
if (numRouters < 100 && m_ReseedRetries < 10)
|
||||||
Load(directory, true); // Reseed
|
Load(directory, true); // Reseed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
NetDb.h
2
NetDb.h
@ -95,7 +95,7 @@ namespace data
|
|||||||
std::map<IdentHash, RequestedDestination *> m_RequestedDestinations;
|
std::map<IdentHash, RequestedDestination *> m_RequestedDestinations;
|
||||||
|
|
||||||
bool m_IsRunning;
|
bool m_IsRunning;
|
||||||
int m_reseedRetries = 0;
|
int m_ReseedRetries;
|
||||||
std::thread * m_Thread;
|
std::thread * m_Thread;
|
||||||
i2p::util::Queue<I2NPMessage> m_Queue; // of I2NPDatabaseStoreMsg
|
i2p::util::Queue<I2NPMessage> m_Queue; // of I2NPDatabaseStoreMsg
|
||||||
};
|
};
|
||||||
|
14
Reseed.cpp
14
Reseed.cpp
@ -10,6 +10,20 @@ namespace i2p
|
|||||||
{
|
{
|
||||||
namespace data
|
namespace data
|
||||||
{
|
{
|
||||||
|
|
||||||
|
static std::vector<std::string> httpReseedHostList = {
|
||||||
|
"http://193.150.121.66/netDb/",
|
||||||
|
"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"
|
||||||
|
};
|
||||||
|
|
||||||
//TODO: Implement v2 reseeding. Lightweight zip library is needed.
|
//TODO: Implement v2 reseeding. Lightweight zip library is needed.
|
||||||
//TODO: Implement SU3, utils.
|
//TODO: Implement SU3, utils.
|
||||||
Reseeder::Reseeder()
|
Reseeder::Reseeder()
|
||||||
|
13
Reseed.h
13
Reseed.h
@ -15,19 +15,6 @@ namespace data
|
|||||||
Reseeder();
|
Reseeder();
|
||||||
~Reseeder();
|
~Reseeder();
|
||||||
bool reseedNow();
|
bool reseedNow();
|
||||||
private:
|
|
||||||
std::vector<std::string> httpReseedHostList = {
|
|
||||||
"http://193.150.121.66/netDb/",
|
|
||||||
"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"
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user