]> granicus.if.org Git - pdns/commitdiff
remove priority in geoip backend
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 18 Sep 2014 17:27:35 +0000 (19:27 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 13 Oct 2014 22:08:57 +0000 (00:08 +0200)
modules/geoipbackend/geoipbackend.cc

index 3dfc7a60727aaad681246bc7f85c9eeaaca54154..023d322c4b0e2066a6a306b6de47c4fa53de4ef1 100644 (file)
@@ -106,14 +106,6 @@ void GeoIPBackend::initialize() {
           rr.content = "";
         } else {
           string content=rec->second.as<string>();
-          if (rr.qtype == QType::MX || rr.qtype == QType::SRV) {
-            // extract priority
-            rr.priority=atoi(content.c_str());
-            string::size_type pos = content.find_first_not_of("0123456789");
-            if(pos != string::npos)
-               boost::erase_head(content, pos);
-            trim_left(content);
-          }
           rr.content = content;
         }