From 2b91d94391b1e55e3c2ff6003b56b05194d3852d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 18 Sep 2025 09:31:41 +0200 Subject: [PATCH] dnsdist: Fix doc for Lua `function_code` from YAML configuration Signed-off-by: Remi Gacogne --- pdns/dnsdistdist/docs/advanced/luaaction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3