From 6947ca7433e30a89e3fe07bb7862d00897774d75 Mon Sep 17 00:00:00 2001 From: Stephen Brown Date: Tue, 25 Feb 2025 16:33:00 +0000 Subject: [PATCH] Show forwarded IP in whitelist denied message --- src/middleware/whitelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/whitelist.js b/src/middleware/whitelist.js index 215493b41..dea47782a 100644 --- a/src/middleware/whitelist.js +++ b/src/middleware/whitelist.js @@ -75,7 +75,7 @@ export default function whitelistMiddleware() { if (!noLogPaths.includes(req.path)) { console.warn( color.red( - `Blocked connection from ${clientIp}; User Agent: ${userAgent}\n\tTo allow this connection, add its IP address to the whitelist or disable whitelist mode by editing config.yaml in the root directory of your SillyTavern installation.\n`, + `Blocked connection from ${ipDetails}; User Agent: ${userAgent}\n\tTo allow this connection, add its IP address to the whitelist or disable whitelist mode by editing config.yaml in the root directory of your SillyTavern installation.\n`, ), ); }