@libp2p/upnp-nat 3.1.6 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.js +1 -1
- package/package.json +8 -8
- package/src/index.ts +4 -4
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ const node = await createLibp2p({
|
|
|
59
59
|
|
|
60
60
|
## Example - Manually specifying gateways and external ports
|
|
61
61
|
|
|
62
|
-
Some ISP-provided routers are
|
|
62
|
+
Some ISP-provided routers are under powered and may require rebooting before
|
|
63
63
|
they will respond to SSDP M-SEARCH messages.
|
|
64
64
|
|
|
65
65
|
You can manually specify your external address and/or gateways, though note
|
package/dist/src/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
*
|
|
37
37
|
* @example Manually specifying gateways and external ports
|
|
38
38
|
*
|
|
39
|
-
* Some ISP-provided routers are
|
|
39
|
+
* Some ISP-provided routers are under powered and may require rebooting before
|
|
40
40
|
* they will respond to SSDP M-SEARCH messages.
|
|
41
41
|
*
|
|
42
42
|
* You can manually specify your external address and/or gateways, though note
|
|
@@ -130,7 +130,7 @@ export interface UPnPNATInit {
|
|
|
130
130
|
*/
|
|
131
131
|
portMappingRefreshThreshold?: number;
|
|
132
132
|
/**
|
|
133
|
-
* A
|
|
133
|
+
* A pre-configured instance of a NatAPI client can be passed as an option,
|
|
134
134
|
* otherwise one will be created
|
|
135
135
|
*/
|
|
136
136
|
portMappingClient?: UPnPNATClient;
|
|
@@ -148,14 +148,14 @@ export interface UPnPNATInit {
|
|
|
148
148
|
* By default we search for local gateways using SSDP M-SEARCH messages. To
|
|
149
149
|
* manually specify a gateway instead, pass values here.
|
|
150
150
|
*
|
|
151
|
-
* A lot of ISP-provided gateway/routers are
|
|
151
|
+
* A lot of ISP-provided gateway/routers are under powered so may need
|
|
152
152
|
* rebooting before they will respond to M-SEARCH messages.
|
|
153
153
|
*
|
|
154
154
|
* Each value is an IPv4 or IPv6 URL of the UPnP device descriptor document,
|
|
155
155
|
* e.g. `http://192.168.1.1:8080/description.xml`. Please see the
|
|
156
156
|
* documentation of your gateway to discover the URL.
|
|
157
157
|
*
|
|
158
|
-
* Note that some gateways will
|
|
158
|
+
* Note that some gateways will randomize the port/path the descriptor
|
|
159
159
|
* document is served from and even change it over time so you may be forced
|
|
160
160
|
* to use an SSDP search instead.
|
|
161
161
|
*/
|
package/dist/src/index.js
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
*
|
|
37
37
|
* @example Manually specifying gateways and external ports
|
|
38
38
|
*
|
|
39
|
-
* Some ISP-provided routers are
|
|
39
|
+
* Some ISP-provided routers are under powered and may require rebooting before
|
|
40
40
|
* they will respond to SSDP M-SEARCH messages.
|
|
41
41
|
*
|
|
42
42
|
* You can manually specify your external address and/or gateways, though note
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/upnp-nat",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "UPnP NAT hole punching",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/upnp-nat#readme",
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@achingbrain/nat-port-mapper": "^4.0.0",
|
|
58
58
|
"@chainsafe/is-ip": "^2.0.2",
|
|
59
|
-
"@libp2p/interface": "^2.6.
|
|
60
|
-
"@libp2p/interface-internal": "^2.3.
|
|
61
|
-
"@libp2p/utils": "^6.5.
|
|
59
|
+
"@libp2p/interface": "^2.6.1",
|
|
60
|
+
"@libp2p/interface-internal": "^2.3.5",
|
|
61
|
+
"@libp2p/utils": "^6.5.5",
|
|
62
62
|
"@multiformats/multiaddr": "^12.3.3",
|
|
63
63
|
"@multiformats/multiaddr-matcher": "^1.6.0",
|
|
64
64
|
"p-defer": "^4.0.1",
|
|
65
65
|
"race-signal": "^1.1.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@libp2p/crypto": "^5.0.
|
|
69
|
-
"@libp2p/logger": "^5.1.
|
|
70
|
-
"@libp2p/peer-id": "^5.0.
|
|
71
|
-
"aegir": "^45.
|
|
68
|
+
"@libp2p/crypto": "^5.0.13",
|
|
69
|
+
"@libp2p/logger": "^5.1.10",
|
|
70
|
+
"@libp2p/peer-id": "^5.0.14",
|
|
71
|
+
"aegir": "^45.1.1",
|
|
72
72
|
"sinon-ts": "^2.0.0",
|
|
73
73
|
"wherearewe": "^2.0.1"
|
|
74
74
|
},
|
package/src/index.ts
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
*
|
|
37
37
|
* @example Manually specifying gateways and external ports
|
|
38
38
|
*
|
|
39
|
-
* Some ISP-provided routers are
|
|
39
|
+
* Some ISP-provided routers are under powered and may require rebooting before
|
|
40
40
|
* they will respond to SSDP M-SEARCH messages.
|
|
41
41
|
*
|
|
42
42
|
* You can manually specify your external address and/or gateways, though note
|
|
@@ -142,7 +142,7 @@ export interface UPnPNATInit {
|
|
|
142
142
|
portMappingRefreshThreshold?: number
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* A
|
|
145
|
+
* A pre-configured instance of a NatAPI client can be passed as an option,
|
|
146
146
|
* otherwise one will be created
|
|
147
147
|
*/
|
|
148
148
|
portMappingClient?: UPnPNATClient
|
|
@@ -162,14 +162,14 @@ export interface UPnPNATInit {
|
|
|
162
162
|
* By default we search for local gateways using SSDP M-SEARCH messages. To
|
|
163
163
|
* manually specify a gateway instead, pass values here.
|
|
164
164
|
*
|
|
165
|
-
* A lot of ISP-provided gateway/routers are
|
|
165
|
+
* A lot of ISP-provided gateway/routers are under powered so may need
|
|
166
166
|
* rebooting before they will respond to M-SEARCH messages.
|
|
167
167
|
*
|
|
168
168
|
* Each value is an IPv4 or IPv6 URL of the UPnP device descriptor document,
|
|
169
169
|
* e.g. `http://192.168.1.1:8080/description.xml`. Please see the
|
|
170
170
|
* documentation of your gateway to discover the URL.
|
|
171
171
|
*
|
|
172
|
-
* Note that some gateways will
|
|
172
|
+
* Note that some gateways will randomize the port/path the descriptor
|
|
173
173
|
* document is served from and even change it over time so you may be forced
|
|
174
174
|
* to use an SSDP search instead.
|
|
175
175
|
*/
|