Use seed nodes even if DNS seeds had data
This commit is contained in:
@@ -1366,10 +1366,12 @@ void ThreadOpenConnections()
|
|||||||
boost::this_thread::interruption_point();
|
boost::this_thread::interruption_point();
|
||||||
|
|
||||||
// Add seed nodes if DNS seeds are all down (an infrastructure attack?).
|
// Add seed nodes if DNS seeds are all down (an infrastructure attack?).
|
||||||
if (addrman.size() == 0 && (GetTime() - nStart > 60)) {
|
// if (addrman.size() == 0 && (GetTime() - nStart > 60)) {
|
||||||
|
if (GetTime() - nStart > 60) {
|
||||||
static bool done = false;
|
static bool done = false;
|
||||||
if (!done) {
|
if (!done) {
|
||||||
LogPrintf("Adding fixed seed nodes as DNS doesn't seem to be available.\n");
|
//LogPrintf("Adding fixed seed nodes as DNS doesn't seem to be available.\n");
|
||||||
|
LogPrintf("Adding fixed seed nodes.\n");
|
||||||
addrman.Add(convertSeed6(Params().FixedSeeds()), CNetAddr("127.0.0.1"));
|
addrman.Add(convertSeed6(Params().FixedSeeds()), CNetAddr("127.0.0.1"));
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user