@webdecoy/fastify 0.16.0 → 0.18.0
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/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -42,7 +42,11 @@ interface WebDecoyPluginOptions extends ProtectOptions {
|
|
|
42
42
|
* Leave this unset and Fastify decides: `request.ip` already honours the
|
|
43
43
|
* server's own `trustProxy` option, which defaults to the socket address. Set
|
|
44
44
|
* it to override that for WebDecoy alone — a number of trusted hops,
|
|
45
|
-
* `'cloudflare'`, or CIDRs of your proxies.
|
|
45
|
+
* `'cloudflare'`, `'railway'`, or CIDRs of your proxies.
|
|
46
|
+
*
|
|
47
|
+
* Prefer this over Fastify's own option for a hop count: since Fastify 5.12.1 a
|
|
48
|
+
* numeric server `trustProxy` trusts no hop at all (a count cannot tell a
|
|
49
|
+
* proxy from a direct client), so `request.ip` stays the socket address.
|
|
46
50
|
*
|
|
47
51
|
* Fastify's default was already the safe one, so unlike the Express and
|
|
48
52
|
* Next.js adapters nothing changes here in 0.12.0. The option exists so all
|
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,11 @@ interface WebDecoyPluginOptions extends ProtectOptions {
|
|
|
42
42
|
* Leave this unset and Fastify decides: `request.ip` already honours the
|
|
43
43
|
* server's own `trustProxy` option, which defaults to the socket address. Set
|
|
44
44
|
* it to override that for WebDecoy alone — a number of trusted hops,
|
|
45
|
-
* `'cloudflare'`, or CIDRs of your proxies.
|
|
45
|
+
* `'cloudflare'`, `'railway'`, or CIDRs of your proxies.
|
|
46
|
+
*
|
|
47
|
+
* Prefer this over Fastify's own option for a hop count: since Fastify 5.12.1 a
|
|
48
|
+
* numeric server `trustProxy` trusts no hop at all (a count cannot tell a
|
|
49
|
+
* proxy from a direct client), so `request.ip` stays the socket address.
|
|
46
50
|
*
|
|
47
51
|
* Fastify's default was already the safe one, so unlike the Express and
|
|
48
52
|
* Next.js adapters nothing changes here in 0.12.0. The option exists so all
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webdecoy/fastify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Web Decoy plugin for Fastify",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"url": "https://github.com/WebDecoy/node/issues"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@webdecoy/node": "^0.
|
|
43
|
+
"@webdecoy/node": "^0.18.0",
|
|
44
44
|
"fastify-plugin": "^4.5.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|