]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use getInnerRemote() to fix EDNS Cookie & Proxy protocol 16112/head
authorJelle Kaufmann <git@jellekaufmann.nl>
Thu, 11 Sep 2025 11:07:09 +0000 (13:07 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 11:07:09 +0000 (13:07 +0200)
pdns/dnspacket.cc

index a5130988742208d84d83cfba1a3c3b4045b5d3f4..263749ccc9f0b2d1a57bc234e33bb392e64eeacc 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;