Sunil Mohan Adapa dc9ab52edc
axes: Minor fixes to configuration for IP blocking
- Use the X-Forwarded-For header only if specified in the configuration. This
  makes FreedomBox safe to use when not behind a reverse proxy server (although
  we are unlikely to do this).

- When fetching the IP address to reset after successful login, use the
  X-Forwarded-For header only if specified in the configuration.

- Minor flake8 refactorings.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-28 17:17:32 -05:00
..
2019-01-23 22:07:27 +01:00
2018-02-21 21:08:11 +01:00
2019-01-14 22:09:06 -05:00
2018-11-17 09:00:26 -05:00
2018-06-18 19:27:40 -04:00
2019-01-14 17:40:22 -05:00