1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-27 10:46:38 +01:00
Files
core/tests/components
Colin O'Dell fd38caa287 X-Forwarded-For improvements and bug fixes (#15204)
* Use new trusted_proxies setting for X-Forwarded-For whitelist

* Only use the last IP in the header

Per Wikipedia (https://en.wikipedia.org/wiki/X-Forwarded-For#Format):

 > The last IP address is always the IP address that connects to the last proxy,
 > which means it is the most reliable source of information.

* Add two additional tests

* Ignore nonsense header values instead of failing
2018-06-29 16:27:06 -04:00
..
2018-05-29 23:14:58 +02:00
2018-06-13 11:14:52 -04:00
2018-04-12 14:28:54 +02:00
2018-04-18 15:46:44 -04:00
2018-06-14 11:57:09 -04:00
2018-03-30 21:33:30 +02:00
2018-06-07 15:58:54 +02:00
2018-06-01 10:06:17 -04:00
2018-02-17 10:29:14 +01:00
2018-05-14 09:13:59 +02:00
2018-04-13 00:22:52 +02:00