From: Otto Moerbeek Date: Tue, 23 Jul 2024 13:49:33 +0000 (+0200) Subject: No need to dedup the dns64 case seperately anymore X-Git-Tag: dnsdist-2.0.0-alpha1~182^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71a6d88b7d300c396e27c4d8dbd9cec55be155a2;p=thirdparty%2Fpdns.git No need to dedup the dns64 case seperately anymore --- diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index cdcb1f71f1..e28d8f6f83 100644 --- a/pdns/recursordist/pdns_recursor.cc +++ b/pdns/recursordist/pdns_recursor.cc @@ -779,24 +779,6 @@ int getFakeAAAARecords(const DNSName& qname, ComboAddress prefix, vector 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; }