fixed compilation error in gcc 4.6

pull/21/head
orignal 10 years ago
parent 1ac95d102a
commit 8d98722b46

@ -45,7 +45,7 @@ namespace data
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)
{
reseeder->reseedNow();
m_reseedRetries++;
m_ReseedRetries++;
}
int numRouters = 0;
boost::filesystem::directory_iterator end;
@ -244,7 +244,7 @@ namespace data
}
}
LogPrint (numRouters, " routers loaded");
if (numRouters < 100 && m_reseedRetries < 10)
if (numRouters < 100 && m_ReseedRetries < 10)
Load(directory, true); // Reseed
}

@ -95,7 +95,7 @@ namespace data
std::map<IdentHash, RequestedDestination *> m_RequestedDestinations;
bool m_IsRunning;
int m_reseedRetries = 0;
int m_ReseedRetries;
std::thread * m_Thread;
i2p::util::Queue<I2NPMessage> m_Queue; // of I2NPDatabaseStoreMsg
};

@ -10,6 +10,20 @@ namespace i2p
{
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 SU3, utils.
Reseeder::Reseeder()

@ -15,19 +15,6 @@ namespace data
Reseeder();
~Reseeder();
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…
Cancel
Save