From ca171679ced245e7001aa42a6f3cfc5e5f4f30be Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 8 Apr 2022 14:21:15 +0200 Subject: [PATCH] dnsdist: Document how we ignore invalid harvested addresses, as suggested by Otto (thanks!) --- pdns/dnsdist.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 542b9cc2a3..5a4a2ddaa8 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -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"); -- 2.47.2