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

pdns/dnspacket.cc

index a69d9f1edb2f55390b0c3feec24c34c70e74af13..7c664db340a35e89e111ed9c3f4fd7b68975f2da 100644 (file)
@@ -615,7 +615,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;