We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3b7943 commit b3315eaCopy full SHA for b3315ea
1 file changed
src/middleware.js
@@ -55,7 +55,7 @@ const app = express();
55
// This also silences the express-rate-limit ValidationError that fires
56
// when X-Forwarded-For is present but trust proxy is disabled.
57
// Never use `true`; it trusts the user-supplied leftmost IP.
58
-const trustProxy = getConfig().APP.TRUST_PROXY ?? 0;
+const trustProxy = parseInt(getConfig().APP.TRUST_PROXY ?? 0, 10);
59
app.set('trust proxy', trustProxy);
60
61
app.use(
0 commit comments