Very simple plug which reads `X-Forwarded-For` or `Forwarded` header according to rfc7239 and fill `conn.remote_ip` with the root client ip.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.gitignore
LICENSE
README.md
mix.exs
mix.lock

README.md

Plug ForwardedPeer

Very simple plug which reads X-Forwarded-For or Forwarded header according to rfc7239 and fill conn.remote_ip with the root client ip.

Usage

defmodule MyPlug do
  use Plug.Builder
  plug PlugForwardedPeer
end