From: Otto Moerbeek Date: Wed, 6 Mar 2024 08:08:41 +0000 (+0100) Subject: Allow AF_INET6 as address family for framestream/dnstap streams X-Git-Tag: dnsdist-1.10.0-alpha0~12^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b1075bf8dbaeed4baec5cc850ecd59564db5497;p=thirdparty%2Fpdns.git Allow AF_INET6 as address family for framestream/dnstap streams --- diff --git a/pdns/fstrm_logger.cc b/pdns/fstrm_logger.cc index 0de4632036..70863fde49 100644 --- a/pdns/fstrm_logger.cc +++ b/pdns/fstrm_logger.cc @@ -50,7 +50,7 @@ FrameStreamLogger::FrameStreamLogger(const int family, const std::string& addres throw std::runtime_error("FrameStreamLogger: fstrm_unix_writer_init() failed."); } #ifdef HAVE_FSTRM_TCP_WRITER_INIT - } else if (family == AF_INET) { + } else if (family == AF_INET || family == AF_INET6) { d_twopt = fstrm_tcp_writer_options_init(); if (!d_twopt) { throw std::runtime_error("FrameStreamLogger: fstrm_tcp_writer_options_init failed.");