]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Allow AF_INET6 as address family for framestream/dnstap streams
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 6 Mar 2024 08:08:41 +0000 (09:08 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 6 Mar 2024 08:08:41 +0000 (09:08 +0100)
pdns/fstrm_logger.cc

index 0de4632036ff60ad5a8f3c81b9d857db5350f085..70863fde493510b143896ddd5f176347cfbd56c4 100644 (file)
@@ -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.");