Closes bitcoin-core/gui#843.
In that issue it was brought up that users likely don’t care what kind of port forwarding is used, and that the setting is opportunistic anyway, so instead of showing an extensive warning, we can simply “upgrade” from UPNP to NAT-PMP+PCP.
-
Change the logic for removed runtime setting
-upnp
to set-natpmp
instead, and log a message. -
Also remove any lingering
upnp
fromsettings.json
and replace it withnatpmp
, when it makes sense (this is important so that the UI shows the right values in the settings):
0{
1 "upnp": true
2}
becomes
0{
1 "natpmp": true
2}
and
0{
1 "upnp": false
2}
becomes
0{
1}
If this solution is acceptable i will add a functional test.