aboutsummaryrefslogtreecommitdiff
path: root/src/mapport.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-02-23 02:12:19 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-01-07 18:07:09 +0200
commita39f7336a3b493d46a4486c4c94fdca1b3151370 (patch)
tree4adf1ae61b5b02f5081b5dbcee09b64503b0947f /src/mapport.cpp
parent28acffd9d53ec437e908abb8c84497a4f41b91ed (diff)
net: Add -natpmp command line option
Diffstat (limited to 'src/mapport.cpp')
-rw-r--r--src/mapport.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mapport.cpp b/src/mapport.cpp
index bb5cc47797..2df4ce45d2 100644
--- a/src/mapport.cpp
+++ b/src/mapport.cpp
@@ -297,9 +297,10 @@ static void MapPortProtoSetEnabled(MapPortProtoFlag proto, bool enabled)
}
}
-void StartMapPort(bool use_upnp)
+void StartMapPort(bool use_upnp, bool use_natpmp)
{
MapPortProtoSetEnabled(MapPortProtoFlag::UPNP, use_upnp);
+ MapPortProtoSetEnabled(MapPortProtoFlag::NAT_PMP, use_natpmp);
DispatchMapPort();
}
@@ -320,7 +321,7 @@ void StopMapPort()
}
#else // #if defined(USE_NATPMP) || defined(USE_UPNP)
-void StartMapPort(bool use_upnp)
+void StartMapPort(bool use_upnp, bool use_natpmp)
{
// Intentionally left blank.
}