diff options
Diffstat (limited to 'src/mapport.h')
-rw-r--r-- | src/mapport.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mapport.h b/src/mapport.h index 6f55c46f6c..8e33ede32f 100644 --- a/src/mapport.h +++ b/src/mapport.h @@ -5,17 +5,15 @@ #ifndef BITCOIN_MAPPORT_H #define BITCOIN_MAPPORT_H -static constexpr bool DEFAULT_UPNP = false; - static constexpr bool DEFAULT_NATPMP = false; enum MapPortProtoFlag : unsigned int { NONE = 0x00, - UPNP = 0x01, - NAT_PMP = 0x02, + // 0x01 was for UPnP, for which we dropped support. + PCP = 0x02, // PCP with NAT-PMP fallback. }; -void StartMapPort(bool use_upnp, bool use_natpmp); +void StartMapPort(bool use_pcp); void InterruptMapPort(); void StopMapPort(); |