Skip to content

Commit afd3b34

Browse files
committed
Merge bitcoin/bitcoin#33004: Enable -natpmp by default
b2d07f8 Add release notes for -natpmp enabled by default (Antoine Poinsot) 3fc660d mapport: turn -natpmp to on by default (Antoine Poinsot) Pull request description: This turns the default for NAT hole-punching (with [PCP](https://en.wikipedia.org/wiki/Port_Control_Protocol) or [NAT-PMP](https://en.wikipedia.org/wiki/NAT_Port_Mapping_Protocol)) to on. Closes #31663. ACKs for top commit: ajtowns: ACK b2d07f8 Tree-SHA512: 7449510aa97ce225a662947184046cba6c8f0409719cd0b279639cedd8fdbf55a769a0088e66c7ac5b6ebabec9b2c81141ae14b7a87a5ad13be01d36c4e56661
2 parents 49bbf9f + b2d07f8 commit afd3b34

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/release-notes-33004.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Updated settings
2+
----------------
3+
4+
* The `-natpmp` option is now set to `1` by default. This means nodes with `-listen` enabled (the
5+
default) but running behind a firewall, such as a local network router, will be reachable if the
6+
firewall/router supports any of the `PCP` or `NAT-PMP` protocols.

src/mapport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef BITCOIN_MAPPORT_H
66
#define BITCOIN_MAPPORT_H
77

8-
static constexpr bool DEFAULT_NATPMP = false;
8+
static constexpr bool DEFAULT_NATPMP = true;
99

1010
void StartMapPort(bool enable);
1111
void InterruptMapPort();

0 commit comments

Comments
 (0)