1
0
Fork 0
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:
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

@ -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"}
]