From 71a6d88b7d300c396e27c4d8dbd9cec55be155a2 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 23 Jul 2024 15:49:33 +0200 Subject: [PATCH] No need to dedup the dns64 case seperately anymore --- pdns/recursordist/pdns_recursor.cc | 18 ------------------ 1 file changed, 18 deletions(-) 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; } -- 2.47.2