]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Document how we ignore invalid harvested addresses, as suggested by Otto... 11512/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Apr 2022 12:21:15 +0000 (14:21 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Apr 2022 12:21:15 +0000 (14:21 +0200)
pdns/dnsdist.cc

index 542b9cc2a30b6561a24e20f1ea34fbf87a0b931c..5a4a2ddaa86f99ba5515b0304e4e6ac8848b8a57 100644 (file)
@@ -1063,6 +1063,8 @@ static bool isUDPQueryAcceptable(ClientState& cs, LocalHolders& holders, const s
        the address is set to 0.0.0.0:0 which makes our sendfromto() use
        the wrong address. In that case it's better to let the kernel
        do the work by itself and use sendto() instead.
+       This is indicated by setting the family to 0 which is acted upon
+       in sendUDPResponse() and DelayedPacket::().
     */
     const ComboAddress bogusV4("0.0.0.0:0");
     const ComboAddress bogusV6("[::]:0");