summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2024-01-09 09:55:55 -0700
committerBen Busby <contact@benbusby.com>2024-01-09 09:55:55 -0700
commit60c318b5a37b5933fc2b5d39ea07f5a06c404a30 (patch)
treebf0beb30db85ff5a881c2240aeb26cd90f909f1a /mix.exs
parent3499caf4871fcb4acf6ee320413ca0aaf48671d1 (diff)
downloadfarside-60c318b5a37b5933fc2b5d39ea07f5a06c404a30.tar.gz
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.
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs1
1 files changed, 1 insertions, 0 deletions
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"}
]