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`, ), ); }