]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix doc for Lua `function_code` from YAML configuration 16134/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 18 Sep 2025 07:31:41 +0000 (09:31 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 18 Sep 2025 07:33:24 +0000 (09:33 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/docs/advanced/luaaction.rst

index e7b498fcf8db0db9614d8bc267a4995911000105..815a5f13203dba9d4ecccffb7ecbad22810b785f 100644 (file)
@@ -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