hapi-forwarded

1.0.0 • Public • Published

hapi-forwarded

Build Status

A Hapi v7.5.3 to trust x-forwarded-for

Example

var Forwarded = require('hapi-forwarded');
server.pack.register(Forwarded, function (err) {
  server.start();
  // request.info.remoteAddress will be replaced with
  // the last address in the `x-forwarded-for` header
});

/hapi-forwarded/

    Package Sidebar

    Install

    npm i hapi-forwarded

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • jasisk