Should work
This commit is contained in:
		
							parent
							
								
									59aa1c7339
								
							
						
					
					
						commit
						90a940b985
					
				| @ -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) + | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user