Merge pull request #4132

d4e1c61 add DEFAULT_UPNP constant in net (Philip Kaufmann)
This commit is contained in:
Wladimir J. van der Laan
2014-05-29 11:45:54 +02:00
3 changed files with 8 additions and 8 deletions

View File

@@ -1733,10 +1733,8 @@ void StartNode(boost::thread_group& threadGroup)
else
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "dnsseed", &ThreadDNSAddressSeed));
#ifdef USE_UPNP
// Map ports with UPnP
MapPort(GetBoolArg("-upnp", USE_UPNP));
#endif
MapPort(GetBoolArg("-upnp", DEFAULT_UPNP));
// Send and receive from sockets, accept connections
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "net", &ThreadSocketHandler));