]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix a confusion about contexts/frontends in `getDNSCryptBind`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 24 Apr 2025 12:57:34 +0000 (14:57 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 25 Apr 2025 12:19:31 +0000 (14:19 +0200)
commit42b477ca9e85c884ddc9e3ab8bf81d8bd133f8a7
tree84b01af49e195c2864b0f7f919d6b6a782d6f0f5
parentcb460fbe30c4a562cba6a92078d41415e701684c
dnsdist: Fix a confusion about contexts/frontends in `getDNSCryptBind`

We internally keep two different frontends (UDP and TCP) for DNSCrypt
configuration binds, but the frontends should not be exposed to the user.
`getDNSCryptBind` should return distinct DNSCrypt contexts, one per
DNSCrypt configuration bind. This was broken during the refactoring
of how frontends are internally kept.
pdns/dnsdistdist/dnsdist-frontend.cc
pdns/dnsdistdist/dnsdist-frontend.hh
pdns/dnsdistdist/dnsdist-lua.cc