g_lua.registerFunction<void(std::shared_ptr<DynBlockRulesGroup>::*)()>("apply", [](std::shared_ptr<DynBlockRulesGroup>& group) {
group->apply();
});
+ g_lua.registerFunction("setQuiet", &DynBlockRulesGroup::setQuiet);
g_lua.registerFunction("toString", &DynBlockRulesGroup::toString);
}
Walk the in-memory query and response ring buffers and apply the configured rate-limiting rules, adding dynamic blocks when the limits have been exceeded.
+ .. method:: DynBlockRulesGroup:setQuiet(quiet)
+
+ .. versionadded:: 1.4.0
+
+ Set whether newly blocked clients or domains should be logged.
+
+ :param bool quiet: True means that insertions will not be logged, false that they will. Default is false.
+
.. method:: DynBlockRulesGroup:excludeRange(netmasks)
.. versionadded:: 1.3.1