From: Jelle Kaufmann Date: Thu, 11 Sep 2025 11:07:09 +0000 (+0200) Subject: Use getInnerRemote() to fix EDNS Cookie & Proxy protocol X-Git-Tag: auth-4.9.9~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f36b5ef4c6e973dea7e29d8e67f8caec67f8a55;p=thirdparty%2Fpdns.git Use getInnerRemote() to fix EDNS Cookie & Proxy protocol (cherry picked from commit 62d5e22b5a2e3c5271aa935a8b41dcc5c6de9e95) --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index a69d9f1ed..7c664db34 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -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 #"<first<<": "<second)<