]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Allow lowercase typeXXXX record types
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 21 Jan 2016 16:46:37 +0000 (17:46 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Sun, 24 Jan 2016 11:37:14 +0000 (12:37 +0100)
Fixes a part of #3237

pdns/dnsparser.hh

index 17d2a57fa889185722bcf72231c1f97021e47bfe..8b4d2bae7e9abefb18c3943112549f87d5f125ec 100644 (file)
@@ -218,7 +218,7 @@ public:
     if(iter != getN2Typemap().end())
       return iter->second.second;
     
-    if(boost::starts_with(name, "TYPE"))
+    if(boost::starts_with(name, "TYPE") || boost::starts_with(name, "type"))
       return pdns_stou(name.substr(4));
     
     throw runtime_error("Unknown DNS type '"+name+"'");