Note that setting both limits to zero can produce very large strings. It is wise to set at least one of the limits.
Additionally, setting ``maxSize`` to zero can lead to less efficient memory management while producing the dump.
+.. function:: getConfigDirAndName() -> str, str
+
+ .. versionadded:: 5.2.3
+
+ Get the configuration directory and the instance name.
+ These two values correspond to the :ref:`setting-yaml-recursor.config_dir` and :ref:`setting-yaml-recursor.config_name` settings.
#include "filterpo.hh"
#include "rec-snmp.hh"
#include "rec-main.hh"
+#include "arguments.hh"
boost::optional<dnsheader> RecursorLua4::DNSQuestion::getDH() const
{
thread.detach();
});
+ d_lw->writeFunction("getConfigDirAndName", []() -> std::tuple<std::string, std::string> {
+ std::string dir = ::arg()["config-dir"];
+ cleanSlashes(dir);
+ std::string name = ::arg()["config-name"];
+ return {dir, name};
+ });
+
if (!d_include_path.empty()) {
includePath(d_include_path);