hapi-remote-address
Provides request.remoteAddress
with support for X-Forwarded-For
headers.
Install
$ npm install hapi-remote-address
Usage
Register the plugin:
const Hapi = ;const HapiRemoteAddress = ; const main = { const server = Hapi; await server; // ... await serverstart; console;}; ;
Then in your route handlers you have access to request.remoteAddress
.
License
MIT
Don't forget
What you create with hapi-remote-address
is more important than hapi-remote-address
.