Built on python-ipware 5.0. Reported by Sang Nguyen (sangn6767@gmail.com).
- Requires
python-ipware>=5.0.0,<6: stricter handling of malformed proxy header values. All users are
encouraged to upgrade to 9.0.0+. - Breaking: with
proxy_count/IPWARE_META_PROXY_COUNTorproxy_trusted_ipsset, only the first
header present (by precedence) is used; lower headers are no longer consulted, and empty or non-IP
entries keep their position in the chain. SetIPWARE_META_PRECEDENCE_ORDERto the header your
proxies write. - Deprecate the legacy algorithm (
algorithm="legacy"/IPWARE_ALGORITHM = "legacy"). It now emits a
DeprecationWarningand will be removed in a future major release; move to the default algorithm.
The legacy algorithm keeps the 7.x proxy-header handling and does not include the stricter handling.