From: Remi Gacogne Date: Thu, 18 Sep 2025 07:31:41 +0000 (+0200) Subject: dnsdist: Fix doc for Lua `function_code` from YAML configuration X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b91d94391b1e55e3c2ff6003b56b05194d3852d;p=thirdparty%2Fpdns.git dnsdist: Fix doc for Lua `function_code` from YAML configuration Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/docs/advanced/luaaction.rst b/pdns/dnsdistdist/docs/advanced/luaaction.rst index e7b498fcf8..815a5f1320 100644 --- a/pdns/dnsdistdist/docs/advanced/luaaction.rst +++ b/pdns/dnsdistdist/docs/advanced/luaaction.rst @@ -75,7 +75,7 @@ A second option is to declare the Lua code inline in the YAML configuration file action: type: "Lua" function_code: | - return function lua_route_tc_to_abuse_pool(dq) + return function(dq) local tc = dq.dh:getTC() -- The TC (truncated) bit should not be set in a query if tc then