]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Check syntax during configuration and add fix docs. 7868/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 4 Jun 2019 09:49:37 +0000 (11:49 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 4 Jun 2019 09:49:37 +0000 (11:49 +0200)
pdns/rec-lua-conf.cc
pdns/recursordist/docs/lua-config/protobuf.rst

index 04e2d9f67326a753883c0a140032119318ca0ff8..1b7dfe6fdbb749aa00fb660eef041d658b8b3737 100644 (file)
@@ -541,7 +541,9 @@ void loadRecursorLuaConfig(const std::string& fname, luaConfigDelayedThreads& de
           try {
             if (servers.type() == typeid(std::string)) {
               auto server = boost::get<const std::string>(servers);
-
+              if (!boost::starts_with(server, "/")) {
+                ComboAddress parsecheck(server);
+              }
               lci.frameStreamExportConfig.servers.emplace_back(server);
             }
             else {
index c3889c3bd0bf48353a9283ee0a306e21349b4fe9..bb35e44b24789cb53b6a637061d3577303573939 100644 (file)
@@ -103,11 +103,11 @@ The recursor must have been built with configure ``--enable-dnstap`` to make thi
 
 .. function:: dnstapFrameStreamServer(servers, [, options])
 
-  .. versionadded:: 4.X.0
+  .. versionadded:: 4.3.0
 
   Send dnstap formatted message to one or more framestream servers for outgoing queries and/or incoming responses.
 
-  :param servers: The IP and port to connect to, or a list of those. If more than one server is configured, all messages are sent to every server.
+  :param servers: Either a pathname of a unix domain socket starting with a slash or the IP:port to connect to, or a list of those. If more than one server is configured, all messages are sent to every server.
   :type servers: string or list of strings
   :param table options: A table with ``key=value`` pairs with options.