]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
No need to dedup the dns64 case seperately anymore
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 23 Jul 2024 13:49:33 +0000 (15:49 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 16 Dec 2024 10:28:53 +0000 (11:28 +0100)
pdns/recursordist/pdns_recursor.cc

index cdcb1f71f13eee06b8dd42f6b773c953d1a0618b..e28d8f6f8305d82c8e850e399f11bd0ca50c68f8 100644 (file)
@@ -779,24 +779,6 @@ int getFakeAAAARecords(const DNSName& qname, ComboAddress prefix, vector<DNSReco
                 }),
               ret.end());
   }
-  else {
-    // Remove double SOA records
-    std::set<DNSName> seenSOAs;
-    ret.erase(std::remove_if(
-                ret.begin(),
-                ret.end(),
-                [&seenSOAs](DNSRecord& record) {
-                  if (record.d_type == QType::SOA) {
-                    if (seenSOAs.count(record.d_name) > 0) {
-                      // We've had this SOA before, remove it
-                      return true;
-                    }
-                    seenSOAs.insert(record.d_name);
-                  }
-                  return false;
-                }),
-              ret.end());
-  }
   t_Counters.at(rec::Counter::dns64prefixanswers)++;
   return rcode;
 }