From 80b6050d102fdd29841bb0b6fe4ee5b4ccd5276f Mon Sep 17 00:00:00 2001 From: Buco7854 Date: Sat, 18 Mar 2023 15:31:15 +0100 Subject: [PATCH] Remove console.log --- src/controllers/index.controller.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/index.controller.js b/src/controllers/index.controller.js index b625038..d2f7ee9 100644 --- a/src/controllers/index.controller.js +++ b/src/controllers/index.controller.js @@ -4,8 +4,6 @@ const path = require('path'); async function index(req, res, next) { try { - console.log(req.ips); - // If there is a slash at the beginning it means the user provided 2 /, so we redirect to the sanitized path const permissions = getPermissionsFor( req.app.locals.config, res.locals.path, @@ -27,7 +25,7 @@ async function index(req, res, next) { } if (res.locals.entity.isFile()){ - // req.ips will be empty if request didn't go through trusted proxy. + // req.ips will be empty if request didn't go through trusted proxy (the proxy must send the client ip). if (req.ips.length > 0){ res.status(200).json({"detail":"ok"}); }