Closed PluieM closed 1 week ago
The recent changes to the project involve renaming the IPBanMatcher
class to IPMatcher
and updating related method signatures to simplify the handling of IP addresses. Additionally, a new RuleMatcher
abstract class has been introduced to standardize rule matching functionality.
Files/Directories | Change Summaries |
---|---|
.../module/impl/rule/IPBlackRuleList.java |
Renamed IPBanMatcher to IPMatcher , updated method signatures, and simplified IP address handling logic. |
.../util/rule/RuleMatcher.java |
Introduced new RuleMatcher abstract class defining rule matching functionality and methods. |
.../util/rule/matcher/IPMatcher.java |
Renamed from IPBanMatcher , included logic for IP address matching using Bloom filters and subnet checks. |
In the code where IPs once stood bold,
New matchers rise, their purpose retold.
With rules to follow, filters in tow,
Simplifying paths where data must flow.
A matcher blooms, with subnet's grace,
Efficient and swift, it knows its place.
In the warren of bytes, changes unfold,
As digital guardians, IPs we hold. 🌐🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
修复 #184 中提到的部分CIDR地址无法正确匹配的问题
Summary by CodeRabbit
New Features
RuleMatcher
abstract class for defining general rule-matching functionality.IPMatcher
to support efficient IP address matching using Bloom filters and subnet checks.Refactor
IPBanMatcher
toIPMatcher
and updated related method signatures for clarity and simplicity.Bug Fixes