Show forwarded IP in whitelist denied message

6947ca7433e30a89e3fe07bb7862d00897774d75

Stephen Brown <steve@fig14.com>

1 files changed, +1 -1Showing whitespace changes
src/middleware/whitelist.js+1 -1
@@ -75,7 +75,7 @@ export default function whitelistMiddleware() {
75 if (!noLogPaths.includes(req.path)) {75 if (!noLogPaths.includes(req.path)) {
76 console.warn(76 console.warn(
77 color.red(77 color.red(
78 `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`,78 `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`,
79 ),79 ),
80 );80 );
81 }81 }