diff options
| author | Ben Busby <contact@benbusby.com> | 2024-01-09 09:55:55 -0700 |
|---|---|---|
| committer | Ben Busby <contact@benbusby.com> | 2024-01-09 09:55:55 -0700 |
| commit | 60c318b5a37b5933fc2b5d39ea07f5a06c404a30 (patch) | |
| tree | bf0beb30db85ff5a881c2240aeb26cd90f909f1a /lib | |
| parent | 3499caf4871fcb4acf6ee320413ca0aaf48671d1 (diff) | |
| download | farside-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 'lib')
| -rw-r--r-- | lib/farside/router.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/farside/router.ex b/lib/farside/router.ex index 00d98e2..827c7fc 100644 --- a/lib/farside/router.ex +++ b/lib/farside/router.ex @@ -4,6 +4,7 @@ defmodule Farside.Router do use Plug.Router + plug(RemoteIp) plug(Farside.Throttle) plug(:match) plug(:dispatch) |
