mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
net: Add -natpmp command line option
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user