forked from netty/netty
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support IPv4 default route in ipfilter.
Motivation: In GitHub issue netty#2767 a bug was reported that the IPv4 default route leads to the ipfilter package denying instead of accepting all addresses. While the issue was reported for Netty 3.9, this bug also applies to Netty 4 and higher. Modifications: When computing the subnet address from the CIDR prefix, correctly handle the case where the prefix is set to zero. Result: Ipfilter accepts all addresses when passed the IPv4 default route.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
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