Athensworks / OBWapp-API

Apache License 2.0
2 stars 0 forks source link

Production: Logging is not using the X-Forwarded-For IP for the client IP #20

Closed pagan8 closed 9 years ago

pagan8 commented 9 years ago

The logging system in brew.js is not using X-Forwarded-For for the client

pagan8 commented 9 years ago

var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;

something like that should do it, need to figure out how to get morgan to use it...