From 60ee1829da41e81dfc4d55be5a5d3875c9c2a334 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 15 Jun 2015 13:48:07 +0300 Subject: [PATCH] Add support for DNSName --- pdns/misc.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pdns/misc.hh b/pdns/misc.hh index 955b971efb..90bf5b7983 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -539,7 +539,11 @@ public: { return regexec(&d_preg,line.c_str(),0,0,0)==0; } - + bool match(const DNSName& name) + { + return match(name.toStringNoDot()); + } + private: regex_t d_preg; }; -- 2.47.2