]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use getInnerRemote() to fix EDNS Cookie & Proxy protocol 16353/head
authorJelle Kaufmann <git@jellekaufmann.nl>
Thu, 11 Sep 2025 11:07:09 +0000 (13:07 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Thu, 23 Oct 2025 09:00:15 +0000 (11:00 +0200)
(cherry picked from commit 62d5e22b5a2e3c5271aa935a8b41dcc5c6de9e95)

pdns/dnspacket.cc

index 5f7407fa1e8bd6c14f26d2bd6ceff76bf45265e0..de40a280ce058634a201c31975cfc101c09b639c 100644 (file)
@@ -630,7 +630,7 @@ try
       else if (s_doEDNSCookieProcessing && option.first == EDNSOptionCode::COOKIE) {
         d_haveednscookie = true;
         d_eco.makeFromString(option.second);
-        d_ednscookievalid = d_eco.isValid(s_EDNSCookieKey, d_remote);
+        d_ednscookievalid = d_eco.isValid(s_EDNSCookieKey, getInnerRemote());
       }
       else {
         // cerr<<"Have an option #"<<iter->first<<": "<<makeHexDump(iter->second)<<endl;