hapi-forwarded-ip
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

hapi-forwarded-ip

Build and publish npm

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! 🚀

Package Sidebar

Install

npm i hapi-forwarded-ip

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.19 kB

Total Files

6

Last publish

Collaborators

  • unkrush