Corrected deploy bug
This commit is contained in:
parent
fd3f11d4cc
commit
cbbe9e6597
|
@ -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) +
|
||||
|
|
Loading…
Reference in New Issue