mirror of
https://github.com/benbusby/farside.git
synced 2025-04-30 15:40:02 +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
|
@ -4,6 +4,7 @@ defmodule Farside.Router do
|
|||
|
||||
use Plug.Router
|
||||
|
||||
plug(RemoteIp)
|
||||
plug(Farside.Throttle)
|
||||
plug(:match)
|
||||
plug(:dispatch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue