Name: forwarded
Owner: Auth0
Description: Parse HTTP X-Forwarded-For header
Forked from: jshttp/forwarded
Created: 2017-05-22 17:01:19.0
Updated: 2017-05-22 17:01:20.0
Pushed: 2017-05-22 17:16:03.0
Homepage: null
Size: 9
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Parse HTTP X-Forwarded-For header
m install forwarded
forwarded = require('forwarded')
addresses = forwarded(req)
Parse the X-Forwarded-For
header from the request. Returns an array
of the addresses, including the socket address for the req
. In reverse
order (i.e. index 0
is the socket address and the last index is the
furthest address, typically the end-user).
m test