Optional
autofalse
Optional
externalCheck if the external address has changed this often in ms. Ignored if an external address is specified.
30000
Optional
externalDo not take longer than this to check if the external address has changed in ms. Ignored if an external address is specified.
10000
Optional
portWhether to automatically refresh UPnP port mappings when their TTL is reached
true
Optional
portA preconfigured instance of a NatAPI client can be passed as an option, otherwise one will be created
Optional
portA string value to use for the port mapping description on the gateway
Optional
portHow long before a port mapping expires to refresh it in ms
60_000
Optional
portHow long UPnP port mappings should last for in ms
720_000
Any mapped addresses are added to the observed address list. These addresses require additional verification by the
@libp2p/autonat
protocol or similar before they are trusted.To skip this verification and trust them immediately pass
true
here