This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit e13c2e740ab32ac796c59cf89dcc170fc047fb1b Author: Leif Hedstrom <[email protected]> AuthorDate: Mon Jul 1 19:42:35 2024 -0600 Fixes broken matchers after PascalCase (#11500) (cherry picked from commit 339e9e52a7921a569bdec436b480d533c30fa427) --- include/cripts/Matcher.hpp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/include/cripts/Matcher.hpp b/include/cripts/Matcher.hpp index bb0bb98519..aa09ef8d50 100644 --- a/include/cripts/Matcher.hpp +++ b/include/cripts/Matcher.hpp @@ -68,25 +68,37 @@ namespace Range } bool - Match(sockaddr const *target, void ** /* ptr ATS_UNUSED */) const + Match(sockaddr const *target) const { return contains(swoc::IPAddr(target)); } bool - Match(in_addr_t target, void ** /* ptr ATS_UNUSED */) const + Match(in_addr_t target) const { return contains(swoc::IPAddr(target)); } bool - Contains(sockaddr const *target, void ** /* ptr ATS_UNUSED */) const + Match(swoc::IPAddr const &target) const + { + return contains(target); + } + + bool + Contains(swoc::IPAddr const &target) const + { + return contains(target); + } + + bool + Contains(sockaddr const *target) const { return contains(swoc::IPAddr(target)); } bool - Contains(in_addr_t target, void ** /* ptr ATS_UNUSED */) const + Contains(in_addr_t target) const { return contains(swoc::IPAddr(target)); }
