]> granicus.if.org Git - pdns/commitdiff
Add support for DNSName
authorAki Tuomi <cmouse@cmouse.fi>
Mon, 15 Jun 2015 10:48:07 +0000 (13:48 +0300)
committermind04 <mind04@monshouwer.org>
Tue, 30 Jun 2015 06:12:47 +0000 (08:12 +0200)
pdns/misc.hh

index 955b971efb6263a1f4f06723897ad9a8f29fc7d4..90bf5b7983344f19af41466566e887cf8a31de40 100644 (file)
@@ -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;
 };