option enable_natpmp => enable_pcp_pmp

for backward compatibility, enable_natpmp is stick recognized
This commit is contained in:
Thomas Bernard 2023-05-27 11:21:21 +02:00
parent ab57f7ca3a
commit 02da7055fc
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
2 changed files with 6 additions and 4 deletions

View File

@ -66,8 +66,8 @@
# Disable IPv6 (default is no : IPv6 enabled if enabled at build time)
#ipv6_disable=yes
# Enable NAT-PMP support (default is no)
#enable_natpmp=yes
# Enable NAT-PMP and PCP support (default is no)
#enable_pcp_pmp=yes
# Enable UPNP support (default is yes)
#enable_upnp=no

View File

@ -1,9 +1,9 @@
/* $Id: options.c,v 1.43 2022/10/21 19:45:26 nanard Exp $ */
/* $Id: options.c,v 1.44 2023/05/27 09:27:20 nanard Exp $ */
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* MiniUPnP project
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* author: Ryan Wagoner
* (c) 2006-2022 Thomas Bernard
* (c) 2006-2023 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
@ -75,7 +75,9 @@ static const struct {
{ UPNPNATPOSTCHAIN, "upnp_nat_postrouting_chain"},
#endif
#ifdef ENABLE_NATPMP
/* both NAT-PMP and PCP (when PCP is enabled at compile time) */
{ UPNPENABLENATPMP, "enable_natpmp"},
{ UPNPENABLENATPMP, "enable_pcp_pmp"},
#endif
#ifdef ENABLE_PCP
{ UPNPPCPMINLIFETIME, "min_lifetime"},