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
//
if (!GetBoolArg("-dnsseed", true)) {
LogPrintf("DNS seeding disabled\n");
} else {
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "dnsseed", &ThreadDNSAddressSeed));
}
// Allow DNS lookups for seeds
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "dnsseed", &ThreadDNSAddressSeed));
// Map ports with UPnP
MapPort(GetBoolArg("-upnp", DEFAULT_UPNP));
MapPort(DEFAULT_UPNP);
// Send and receive from sockets, accept connections
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "net", &ThreadSocketHandler));