Parse HTTP X-Forwarded-For header
npm install @fastify/forwarded


Parse HTTP X-Forwarded-For header.
Updated version of the great https://github.com/jshttp/forwarded.
Implements https://github.com/jshttp/forwarded/pull/9.
``sh`
$ npm i @fastify/forwarded
`js`
const forwarded = require('@fastify/forwarded')
`js`
const addresses = forwarded(req)
Parse the X-Forwarded-For header from the request. Returns an arrayreq
of the addresses, including the socket address for the , in reverse0
order (i.e. index is the socket address and the last index is the
furthest address, typically the end-user).
`sh``
$ npm test