diff options
Diffstat (limited to 'src/mapport.h')
-rw-r--r-- | src/mapport.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mapport.h b/src/mapport.h index 2cdde775d3..279d65167f 100644 --- a/src/mapport.h +++ b/src/mapport.h @@ -5,12 +5,17 @@ #ifndef BITCOIN_MAPPORT_H #define BITCOIN_MAPPORT_H -/** -upnp default */ #ifdef USE_UPNP -static const bool DEFAULT_UPNP = USE_UPNP; +static constexpr bool DEFAULT_UPNP = USE_UPNP; #else -static const bool DEFAULT_UPNP = false; -#endif +static constexpr bool DEFAULT_UPNP = false; +#endif // USE_UPNP + +#ifdef USE_NATPMP +static constexpr bool DEFAULT_NATPMP = USE_NATPMP; +#else +static constexpr bool DEFAULT_NATPMP = false; +#endif // USE_NATPMP enum MapPortProtoFlag : unsigned int { NONE = 0x00, @@ -18,7 +23,7 @@ enum MapPortProtoFlag : unsigned int { NAT_PMP = 0x02, }; -void StartMapPort(bool use_upnp); +void StartMapPort(bool use_upnp, bool use_natpmp); void InterruptMapPort(); void StopMapPort(); |