1
0
Fork 0
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:
Ben Busby 2024-01-09 09:55:55 -07:00
parent 3499caf487
commit 60c318b5a3
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
3 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,7 @@ defmodule Farside.Router do
use Plug.Router
plug(RemoteIp)
plug(Farside.Throttle)
plug(:match)
plug(:dispatch)