]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix destination port reporting on "any" binds
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 22 Mar 2017 22:50:38 +0000 (23:50 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 22 Mar 2017 22:50:38 +0000 (23:50 +0100)
commit0c909af839d8891df2f8efd6c1884466c3f79e82
tree6d803cc2d0e2588d38bdfbd8ad2ebdc1148d127d
parenta77e6c032249caa264bdba84887e1a0f0b7db1e0
dnsdist: Fix destination port reporting on "any" binds

Over UDP we call `HarvestDestinationAddress()` to get the real
destination address via `IP_PKTINFO`., but this only sets the destination
address, not the destination port. Therefore since
7cea4e39a78ef981ee461b49bbc193fa9903f56dit the destination port was always
0 when bound to an "any" address.
pdns/dnsdist.cc