]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Report the proper Lua function when parsing fails 16545/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 25 Nov 2025 15:28:13 +0000 (16:28 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 25 Nov 2025 15:29:42 +0000 (16:29 +0100)
It looks like we copy/pasted the `addDynBlockSMT` name when calling
the parser from the `addDynamicBlock` function.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-lua-inspection.cc

index 4903d8c1ec18b5d3a661bb4758d20f9e61a95b4c..eb10bedbb16ea41709f7d962dd88bfa30952f478 100644 (file)
@@ -1149,7 +1149,7 @@ void setupLuaInspection(LuaContext& luaCtx)
                          AddressAndPortRange target(clientIPCA, clientIPMask ? *clientIPMask : (clientIPCA.isIPv4() ? 32 : 128), clientIPPortMask ? *clientIPPortMask : 0);
                          unsigned int actualSeconds = seconds ? *seconds : 10;
                          DynBlockRulesGroup::DynBlockRule rule;
-                         parseDynamicActionOptionalParameters("addDynBlockSMT", rule, action, optionalParameters);
+                         parseDynamicActionOptionalParameters("addDynamicBlock", rule, action, optionalParameters);
 
                          timespec now{};
                          gettime(&now);