diff options
| author | Philip Kaufmann <[email protected]> | 2014-05-05 21:06:14 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-05-20 15:34:19 +0200 |
| commit | d4e1c61212c3f28f80c7184aca81f5d118fad460 (patch) | |
| tree | b8121210dd1b276be3ea0d34e18afbe539a14405 /src/net.cpp | |
| parent | Merge pull request #4197 (diff) | |
| download | discoin-d4e1c61212c3f28f80c7184aca81f5d118fad460.tar.xz discoin-d4e1c61212c3f28f80c7184aca81f5d118fad460.zip | |
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.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net.cpp b/src/net.cpp index 6bde1e799..7cabfef09 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)); |