Configuration for automatic port forwarding (see PortMappingService). More...
#include <port_mapping.h>
Public Attributes | |
| bool | enabled = true |
| Master switch for automatic port forwarding. | |
| bool | enable_upnp = true |
| Use the UPnP IGD backend. | |
| bool | enable_natpmp = true |
| Use the NAT-PMP backend. | |
| uint32_t | lease_duration_seconds = 3600 |
| Requested lease duration. | |
Configuration for automatic port forwarding (see PortMappingService).
Both backends run in parallel by default; whichever the router supports succeeds. Disabling one (or all) of them is a matter of flipping a flag.
Definition at line 72 of file port_mapping.h.
| bool librats::PortMappingConfig::enable_natpmp = true |
Use the NAT-PMP backend.
Definition at line 75 of file port_mapping.h.
| bool librats::PortMappingConfig::enable_upnp = true |
Use the UPnP IGD backend.
Definition at line 74 of file port_mapping.h.
| bool librats::PortMappingConfig::enabled = true |
Master switch for automatic port forwarding.
Definition at line 73 of file port_mapping.h.
| uint32_t librats::PortMappingConfig::lease_duration_seconds = 3600 |
Requested lease duration.
Definition at line 76 of file port_mapping.h.