mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Logging improvements
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user