-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better ipv6 support when checking network bans
- Rely on using `in` between IP addresses and IP Networks (https://docs.python.org/3/library/ipaddress.html#networks-as-containers-of-addresses) rather than re-implement that ip address / network matching with CIDRs ourselves. - Brings in *much* better ipv6 support - Adds a few test cases for ipv6 support as well Discovered while investigating the test failures in #1856
- Loading branch information
Showing
3 changed files
with
19 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters