Get the remote address of a request, with reverse-proxy support
$ npm install addr
proxes: an array of IP addresses of trusted proxies. If specified and the request doesn't come from one of these addresses, the
X-Forwarded-Forheader will not be honored.
- Returns: Remote IP address of the request, taken from the
X-Forwarded-Forheader if it exists and the request is coming from a trusted proxy.
var addr =http =port = 3000proxies = '127.0.0.1';http;