]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix the harvesting of destination addresses
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 24 Feb 2023 10:30:44 +0000 (11:30 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 24 Feb 2023 10:30:44 +0000 (11:30 +0100)
commite8680f952382135f7880b516ee4cc71a149c0d80
treece47e3ce384bf1d684374bfe7ad2b7dc7ef9d61c
parent21d3701e40654584e56e1ce0caf1fdbfb90240f7
dnsdist: Fix the harvesting of destination addresses

The original destination was not properly updated: 'hopLocal' contains
the destination address of the packet we received, and matches 'origDest'
unless the proxy protocol is used, in which case 'origDest' will be
updated by the 'real' destination address as seen by the client and
the first hop.
Reported by phonedph1 (many thanks!).
pdns/dnsdist.cc
regression-tests.dnsdist/test_Advanced.py