]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/dnsname.hh
SuffixMatchNode:add: Accept more types
[thirdparty/pdns.git] / pdns / dnsname.hh
index d4e429c9cd65c260f598e9ee467de294fe5921ad..5b571085e51ca4ac1a143495d547eadc09b69a86 100644 (file)
@@ -394,6 +394,11 @@ struct SuffixMatchNode
       d_nodes.insert(dnsname);
     }
 
+    void add(const std::string& name)
+    {
+      add(DNSName(name));
+    }
+
     void add(std::vector<std::string> labels)
     {
       d_tree.add(labels, true);