]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix first IPv6 console connection being rejected
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 12 Mar 2024 13:59:25 +0000 (14:59 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 14 Mar 2024 08:48:10 +0000 (09:48 +0100)
commit1a9b7f5a97e97e371bd4b6043c14d9faccb9013c
treeedc2b0549fe31108e212924e2a7f2822f8f61184
parent2bd2f0ca28d0954d63499cdeb9b14f61342d6448
dnsdist: Fix first IPv6 console connection being rejected

If we don't set the family of the client IP address,
`ComboAddress::getSocklen()` will return the size of an IPv4 struct
and thus the first IPv6 client address will get truncated.
Subsequent connections will be fine because the family will have been
set to IPv6.
pdns/dnsdistdist/dnsdist-console.cc