From 60c318b5a37b5933fc2b5d39ea07f5a06c404a30 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Tue, 9 Jan 2024 09:55:55 -0700 Subject: 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. --- mix.exs | 1 + 1 file changed, 1 insertion(+) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index 3bd45ef..c2ffd56 100644 --- a/mix.exs +++ b/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"} ] -- cgit v1.2.3