Logging improvements

This commit is contained in:
mrfry 2021-02-26 10:39:53 +01:00
parent cd026a504c
commit 7abcdc0cca
2 changed files with 3 additions and 3 deletions

View file

@ -123,7 +123,7 @@ function LogReq(req: Request, toFile?: boolean, statusCode?: string): void {
let ip: any =
req.headers['cf-connecting-ip'] || req.connection.remoteAddress
if (!toFile) {
ip = expandWithSpaces(ip, 35)
ip = expandWithSpaces(ip, 39)
}
const nolog = noLogips.some((noLogip) => {
return ip.includes(noLogip)