Skip to content

Commit

Permalink
provided option to use x-forwarded-for as remote address
Browse files Browse the repository at this point in the history
settings fix

added tests for X-Forwarded-For header

Revert "settings fix"

This reverts commit d5ab86d.

Revert "provided option to use x-forwarded-for as remote address"

This reverts commit bcb5c97.

logs X-Forwarded-For ip

Revert "added tests for X-Forwarded-For header"

This reverts commit 4134e17.
  • Loading branch information
Rico Chen committed Nov 4, 2014
1 parent 60c1b9c commit 4b3a269
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/monitor.js
Expand Up @@ -229,6 +229,7 @@ internals.Monitor.prototype._requestHandler = function (request) {
query: request.query,
source: {
remoteAddress: request.info.remoteAddress,
forwardedFor: req.headers['x-forwarded-for'],
userAgent: req.headers['user-agent'],
referer: req.headers.referer
},
Expand Down

0 comments on commit 4b3a269

Please sign in to comment.