From af449658aaa5eec181c099d26c2cc9b0b71113b7 Mon Sep 17 00:00:00 2001 From: soruly Date: Thu, 17 Oct 2024 09:49:10 +0000 Subject: [PATCH] Trust 2 hops proxy --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 670d89f1e..1cb95a564 100644 --- a/server.js +++ b/server.js @@ -67,7 +67,7 @@ const getHelpMessage = (botName) => ].join("\n"); app.disable("x-powered-by"); -app.set("trust proxy", 1); +app.set("trust proxy", 2); app.use( rateLimit({ max: 100, // limit each IP to 100 requests