From: Charles-Henri Bruyand Date: Tue, 19 Sep 2023 16:38:48 +0000 (+0200) Subject: doq: don't add EDNS X-Git-Tag: rec-5.0.0-alpha2~6^2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc281f422b9681976bfeece418b661365c2154fd;p=thirdparty%2Fpdns.git doq: don't add EDNS --- diff --git a/pdns/dnsdistdist/doq.cc b/pdns/dnsdistdist/doq.cc index b0e05d6a45..d56059273c 100644 --- a/pdns/dnsdistdist/doq.cc +++ b/pdns/dnsdistdist/doq.cc @@ -453,22 +453,6 @@ static void processDOQQuery(DOQUnitUniquePtr&& unit) ComboAddress remote; try { - { - // if there was no EDNS, we add it with a large buffer size - // so we can use UDP to talk to the backend. - auto dh = const_cast(reinterpret_cast(du->query.data())); - - if (!dh->arcount) { - if (generateOptRR(std::string(), du->query, 4096, 4096, 0, false)) { - dh = const_cast(reinterpret_cast(du->query.data())); // may have reallocated - dh->arcount = htons(1); - du->ids.ednsAdded = true; - } - } - else { - // we leave existing EDNS in place - } - } remote = du->ids.origRemote; DOQServerConfig* dsc = du->dsc;