summaryrefslogtreecommitdiff
path: root/src/wildcard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wildcard.cpp')
-rw-r--r--src/wildcard.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp
index aa9f52102..3b4554f0f 100644
--- a/src/wildcard.cpp
+++ b/src/wildcard.cpp
@@ -83,3 +83,10 @@ bool match(const char *str, const char *mask)
return !*wild;
}
+/* Overloaded function that has the option of using cidr */
+bool match(const char *str, const char *mask, bool use_cidr_match)
+{
+ if (use_cidr_match && MatchCIDR(str, mask))
+ return true;
+ return match(str, mask);
+}