spee.ch/server/middleware/torCheckMiddleware.js

10 lines
241 B
JavaScript
Raw Normal View History

2018-06-27 23:23:14 +02:00
const logger = require('winston');
const torCheck = (req, res, next) => { // custom logging middleware to log all incoming http requests
const { ip } = req;
logger.debug(`tor check for ${ip}`);
next();
};
module.exports = torCheck;