mirror of
https://github.com/benbusby/farside.git
synced 2025-05-01 08:00:03 +00:00
Extract remote ip from X-Forwarded-For
The remote IP returned in plug.conn is meant to be overwritten by the developer, and doesn't reflect the origin of the request based on headers. A new dependency has been added to make this change quicker to roll out.
This commit is contained in:
parent
3499caf487
commit
60c318b5a3
3 changed files with 4 additions and 0 deletions
1
mix.exs
1
mix.exs
|
@ -42,6 +42,7 @@ defmodule Farside.MixProject do
|
|||
{:plug_attack, "~> 0.4.2"},
|
||||
{:plug_cowboy, "~> 2.0"},
|
||||
{:quantum, "~> 3.0"},
|
||||
{:remote_ip, "~> 1.1"},
|
||||
{:cubdb, "~> 2.0.1"},
|
||||
{:bakeware, "~> 0.2.4"}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue