Corrected deploy bug

This commit is contained in:
Thomas FORGIONE 2015-07-03 14:52:45 +02:00
parent fd3f11d4cc
commit cbbe9e6597
1 changed files with 1 additions and 1 deletions

View File

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