aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-05-05 21:06:14 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-05-20 15:34:19 +0200
commitd4e1c61212c3f28f80c7184aca81f5d118fad460 (patch)
treeb8121210dd1b276be3ea0d34e18afbe539a14405 /src/net.cpp
parent9d97e83bf677ce595c6b2dc5d6805c2fcb1bc05b (diff)
downloadbitcoin-d4e1c61212c3f28f80c7184aca81f5d118fad460.tar.xz
add DEFAULT_UPNP constant in net
- as this is a shared Core/GUI setting, this makes it easier to keep them in sync (also no new includes are needed)
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 6bde1e7999..7cabfef099 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1736,10 +1736,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));