Skip to content

django-ipware 9.0.0

Choose a tag to compare

@un33k un33k released this 29 Nov 11:20
· 3 commits to master since this release
6cd410a

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_COUNT or proxy_trusted_ips set, 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. Set IPWARE_META_PRECEDENCE_ORDER to the header your
    proxies write.
  • Deprecate the legacy algorithm (algorithm="legacy" / IPWARE_ALGORITHM = "legacy"). It now emits a
    DeprecationWarning and 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.