core/tests/scripts
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
..
__init__.py Handle requirements for scripts (#2765) 2016-08-09 23:54:34 -07:00
test_auth.py Migrate home assistant auth provider to use storage helper (#15200) 2018-06-29 00:02:45 -04:00
test_check_config.py X-Forwarded-For improvements and bug fixes (#15204) 2018-06-29 16:27:06 -04:00
test_init.py assertEquals is deprecated (#7777) 2017-05-25 22:21:22 -07:00