Fixed getIP module import

This commit is contained in:
Ajay Ramachandran
2020-04-06 17:29:52 -04:00
parent 8eca458e38
commit f1a7524acf

View File

@@ -1,5 +1,5 @@
var fs = require('fs');
var config = require('./config.js');
var config = require('../config.js');
module.exports = function getIP(req) {
return config.behindProxy ? req.headers['x-forwarded-for'] : req.connection.remoteAddress;