From d78bcadcc63dfeb4e18547b0ece1ffa6ff3a54be Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 21 Oct 2020 12:17:30 +0200 Subject: [PATCH] Add a comment: should we add the udr flag if !udrEnabled? --- pdns/pdns_recursor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 3afc625535..9d8daeaa07 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1812,6 +1812,7 @@ static void startDoResolve(void *p) #ifdef HAVE_PROTOBUF if (t_protobufServers) { #ifdef NOD_ENABLED + // if (g_udrEnabled) ? pbMessage->addRR(*i, luaconfsLocal->protobufExportConfig.exportTypes, udr); #else pbMessage->addRR(*i, luaconfsLocal->protobufExportConfig.exportTypes); @@ -1876,6 +1877,7 @@ static void startDoResolve(void *p) pbMessage->getResponseBuf(), !appliedPolicy.getName().empty() || !dc->d_policyTags.empty()}); #ifdef NOD_ENABLED + // if (g_udrEnabled) ?? pbMessage->clearUDR(pbDataForCache->d_response); #endif // Below are the fields that are not stored in the packet cache and will be appended here and on a cache hit -- 2.47.3