jazzband / django-defender

A simple super fast django reusable app that blocks people from brute forcing login attempts
Apache License 2.0
1.03k stars 144 forks source link

Bugfix strip_keys #217

Closed dashgin closed 1 year ago

dashgin commented 2 years ago

When the IP is an ipv6, like ::ffff:192.168.24.24, strip_keys method gives an incorrect response.

codecov[bot] commented 2 years ago

Codecov Report

Merging #217 (9177a03) into master (0b96c53) will increase coverage by 0.13%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #217      +/-   ##
==========================================
+ Coverage   92.46%   92.59%   +0.13%     
==========================================
  Files          13       13              
  Lines         398      405       +7     
==========================================
+ Hits          368      375       +7     
  Misses         30       30              
Impacted Files Coverage Δ
defender/utils.py 98.66% <100.00%> (+0.03%) :arrow_up:
defender/connection.py 96.77% <0.00%> (+0.22%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0b96c53...9177a03. Read the comment docs.