interface GlobalMapPortOptions {
    autoRefresh?: boolean;
    description?: string;
    refreshThreshold?: number;
    refreshTimeout?: number;
    ttl?: number;
}

Hierarchy (view full)

Properties

autoRefresh?: boolean

If true, any mapped ports will be refreshed when their lease expires

Default

true
description?: string

If passed this will be used as the default description when mapping ports

Default

'@achingbrain/nat-port-mapper'
refreshThreshold?: number

How long before expiry to remap the port mapping in ms

Default

60_000
refreshTimeout?: number

How long to wait while trying to refresh a port mapping in ms

Default

10_000
ttl?: number

TTL for port mappings in ms

Default

3_600_000