You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/CONFIG.md
+9-1
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ The js-ipfs config file is a JSON document located in the root directory of the
26
26
-[`Enabled`](#enabled)
27
27
-[`Swarm`](#swarm-1)
28
28
-[`ConnMgr`](#connmgr)
29
+
-[`DisableNatPortMap`](#disablenatportmap)
29
30
-[Example](#example)
30
31
-[`API`](#api-1)
31
32
-[`HTTPHeaders`](#httpheaders)
@@ -269,6 +270,12 @@ The "basic" connection manager tries to keep between `LowWater` and `HighWater`
269
270
1. Keeping all connections until `HighWater` connections is reached.
270
271
2. Once `HighWater` is reached, it closes connections until `LowWater` is reached.
271
272
273
+
### `DisableNatPortMap`
274
+
275
+
By default when running under nodejs, libp2p will try to use [UPnP](https://en.wikipedia.org/wiki/Universal_Plug_and_Play) to open a random high port on your router for any TCP connections you have configured.
276
+
277
+
Set `DisableNatPortMap` to `false` to disable this behaviour.
278
+
272
279
### Example
273
280
274
281
```json
@@ -278,7 +285,8 @@ The "basic" connection manager tries to keep between `LowWater` and `HighWater`
0 commit comments