vpndetection-fastify 2.0.10 → 2.0.12

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -75,7 +75,7 @@ await app.register(vpndetection, {
75
75
 
76
76
  This is the setting that decides whether any of the above works, and it is the one thing only you can get right.
77
77
 
78
- By default the plugin uses `request.ip`, which is Fastify's own accessor. **Fastify resolves `request.ip` to the socket peer unless you built the server with `trustProxy`.** So if your app sits behind nginx, a load balancer, or a CDN and you have not set it, every visitor arrives wearing your proxy's address — which is a datacenter address, so a hosting rule would block all of them.
78
+ By default the plugin uses `request.ip`, which is Fastify's own accessor. **Fastify resolves `request.ip` to the socket peer unless you built the server with `trustProxy`.** So if your app sits behind nginx, a load balancer, or a CDN and you have not set it, every visitor arrives wearing your proxy's address, and that is the address that gets checked: VPN visitors pass unnoticed, and if it is a hosting address, a hosting rule blocks everyone. nginx on the same machine is `127.0.0.1` and a load balancer usually has a private address, which the plugin answers locally without a lookup, flagging nobody and logging a warning.
79
79
 
80
80
  If you are behind a proxy you control, setting Fastify's own option to that proxy's address is the right fix and everything else here follows from it:
81
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpndetection-fastify",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "Official Fastify plugin for the VPNDetection API. Detect VPNs, proxies, Tor, hosting and CDN visitors on every request.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "fastify-plugin": "^5.0.1",
48
- "vpndetection": "^5.4.0"
48
+ "vpndetection": "^5.5.2"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "fastify": "4.x || 5.x"