Back to Site
Loading...
Searching...
No Matches
librats::PortMappingConfig Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ enable_natpmp

bool librats::PortMappingConfig::enable_natpmp = true

Use the NAT-PMP backend.

Definition at line 75 of file port_mapping.h.

◆ enable_upnp

bool librats::PortMappingConfig::enable_upnp = true

Use the UPnP IGD backend.

Definition at line 74 of file port_mapping.h.

◆ enabled

bool librats::PortMappingConfig::enabled = true

Master switch for automatic port forwarding.

Definition at line 73 of file port_mapping.h.

◆ lease_duration_seconds

uint32_t librats::PortMappingConfig::lease_duration_seconds = 3600

Requested lease duration.

Definition at line 76 of file port_mapping.h.


The documentation for this struct was generated from the following file: