Should work

This commit is contained in:
Thomas FORGIONE 2015-07-03 15:03:26 +02:00
parent 59aa1c7339
commit 90a940b985
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ Log.ready = function(msg) {
Log.request = function(req, res) {
console.log(req.headers['x-forwarded-for'], process.env.OPENSHIFT_NODEJS_IP);
if (req.headers['x-forwarded-for'] != process.env.OPENSHIFT_NODEJS_IP || isDev) {
if (req.headers['x-forwarded-for'] !== undefined || isDev) {
log(
'[REQ] ' + new Date() + ' ' +
(req.headers['x-forwarded-for'] || req.connection.remoteAddress) +