Skip to content

Commit f40165b

Browse files
committed
docs: use local link for proxy troubleshooting guide
1 parent ff3702e commit f40165b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/reference/error-codes.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ Set `validate: {ip: false}` in the options to disable the check.
6262

6363
> Added in `6.8.0`.
6464
65-
This error is logged when the trust proxy setting is set to `true`.
65+
This error is logged when the `trust proxy` setting is set to `true`.
6666

6767
If this is set to true, it will cause express to return the leftmost entry in
6868
the `X-Forwarded-For` header as the client's IP. This header could be set by the
6969
proxy or a malicious client, opening up avenues for bypassing the rate limiter.
7070

7171
Refer to the
72-
[troubleshooting proxy issues](https://github.com/express-rate-limit/express-rate-limit/wiki/Troubleshooting-Proxy-Issues)
73-
page for a guide to set the `trust proxy` value correctly.
72+
[troubleshooting proxy issues](/guides/troubleshooting-proxy-issues) page for a
73+
guide to set the `trust proxy` value correctly.
7474

7575
This check will be prevented if a custom `keyGenerator` is supplied.
7676

@@ -81,12 +81,12 @@ Set `validate: {trustProxy: false}` in the options to disable the check.
8181
> Added in `6.8.0`.
8282
8383
This error is logged when the `X-Forwarded-For` header is set (indicating use of
84-
a proxy), but the trust proxy setting is `false` (which is the default value).
84+
a proxy), but the `trust proxy` setting is `false` (which is the default value).
8585

8686
This usually indicates a configuration issue that will cause express-rate-limit
8787
to apply it's limits global rather than on a per-user basis. Refer to the
88-
[troubleshooting proxy issues](https://github.com/express-rate-limit/express-rate-limit/wiki/Troubleshooting-Proxy-Issues)
89-
page for a guide to set the `trust proxy` value correctly.
88+
[troubleshooting proxy issues](/guides/troubleshooting-proxy-issues) page for a
89+
guide to set the `trust proxy` value correctly.
9090

9191
If this error occurs only rarely, and you do not have a reverse proxy, it may
9292
indicate a malicious user probing for vulnerabilities.

0 commit comments

Comments
 (0)