From: Jelle Kaufmann Date: Thu, 11 Sep 2025 11:07:09 +0000 (+0200) Subject: Use getInnerRemote() to fix EDNS Cookie & Proxy protocol X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F16112%2Fhead;p=thirdparty%2Fpdns.git Use getInnerRemote() to fix EDNS Cookie & Proxy protocol --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index a51309887..263749ccc 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -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 #"<first<<": "<second)<