This commit is contained in:
Christopher Jeffrey 2014-08-13 17:37:04 -04:00
parent 4b05b834ca
commit 802cea13e4

View File

@ -660,14 +660,11 @@ void StartNode(boost::thread_group& threadGroup) {
// Start threads // Start threads
// //
if (!GetBoolArg("-dnsseed", true)) { // Allow DNS lookups for seeds
LogPrintf("DNS seeding disabled\n"); threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "dnsseed", &ThreadDNSAddressSeed));
} else {
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "dnsseed", &ThreadDNSAddressSeed));
}
// Map ports with UPnP // Map ports with UPnP
MapPort(GetBoolArg("-upnp", DEFAULT_UPNP)); MapPort(DEFAULT_UPNP);
// Send and receive from sockets, accept connections // Send and receive from sockets, accept connections
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "net", &ThreadSocketHandler)); threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "net", &ThreadSocketHandler));