aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-05-29 11:45:54 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-05-29 11:46:28 +0200
commit67f43a99ae59e24a7f147a27f1d008b8c4e5fc69 (patch)
tree779d6ff45fa26c53d74a9dff73953108dfd8ac8f /src/net.h
parent10e3af352f70452dfc042759d4395ecda752f382 (diff)
parentd4e1c61212c3f28f80c7184aca81f5d118fad460 (diff)
downloadbitcoin-67f43a99ae59e24a7f147a27f1d008b8c4e5fc69.tar.xz
Merge pull request #4132
d4e1c61 add DEFAULT_UPNP constant in net (Philip Kaufmann)
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 503b49dd4b..ac90ef25ef 100644
--- a/src/net.h
+++ b/src/net.h
@@ -38,6 +38,12 @@ namespace boost {
/** The maximum number of entries in an 'inv' protocol message */
static const unsigned int MAX_INV_SZ = 50000;
+/** -upnp default */
+#ifdef USE_UPNP
+static const bool DEFAULT_UPNP = USE_UPNP;
+#else
+static const bool DEFAULT_UPNP = false;
+#endif
inline unsigned int ReceiveFloodSize() { return 1000*GetArg("-maxreceivebuffer", 5*1000); }
inline unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", 1*1000); }