Interface AutoNATServiceInit

interface AutoNATServiceInit {
    connectionThreshold?: number;
    maxInboundStreams?: number;
    maxMessageSize?: number;
    maxOutboundStreams?: number;
    protocolPrefix?: string;
    refreshInterval?: number;
    startupDelay?: number;
    timeout?: number;
}

Properties

connectionThreshold?: number

If the number of currently open connections is higher than this value as a percentage of the maximum number of allowed connections, automatically reverify previously verified addresses since auto nat peers may find it hard to dial and will report that the address is not dialable leading this node to delist it.

Default

80
maxInboundStreams?: number

How many parallel inbound autoNAT streams we allow per-connection

maxMessageSize?: number

How large incoming autonat messages are allowed to be in bytes. If messages larger than this are received the stream will be reset.

Default

8192
maxOutboundStreams?: number

How many parallel outbound autoNAT streams we allow per-connection

protocolPrefix?: string

Allows overriding the protocol prefix used

refreshInterval?: number

Verify our external addresses this often

startupDelay?: number

How long to wait after startup before trying to verify our external address

timeout?: number

How long we should wait for a remote peer to verify our external address