getip.js 147 Bytes Raw Blame History Permalink 1 2 3 4 5 6 const requestIp = require('request-ip'); module.exports = function(req, res, next) { req.clientIp = requestIp.getClientIp(req); next(); };