aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
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.h
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.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 729b1bcd57..21b8dd242f 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); }