hapi-forwarded-ip
v1.0.0
Published
Forwarded IP plugin for Hapi
Downloads
1
Maintainers
Readme
hapi-forwarded-ip
This package overrides remoteAddress of Hapi request object with X-Forwarded-For
header's value.
Usage
Import plugin:
import { HapiForwardedIpPlugin } from 'hapi-forwarded-ip';
When creating server, call:
await server.register(HapiForwardedIpPlugin);
Happy hacking! 🚀