Skip to content
Very simple plug which reads `X-Forwarded-For` or `Forwarded` header according to rfc7239 and fill `conn.remote_ip` with the root client ip.
Elixir
Fetching latest commit…
Cannot retrieve the latest commit at this 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
Something went wrong with that request. Please try again.