From: menakite <29005531+menakite@users.noreply.github.com> Date: Fri, 16 Aug 2024 04:12:33 +0000 (+0200) Subject: modules/workarounds: fix module initialisation. X-Git-Tag: v6.0.9~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18d88a87de5cad3918761130b5d250ac25b5e2a0;p=thirdparty%2Fknot-resolver.git modules/workarounds: fix module initialisation. Rename config to init, which is called when a module is loaded. It seems it's been broken for a while. --- diff --git a/modules/workarounds/workarounds.lua b/modules/workarounds/workarounds.lua index 4ce7c4789..4cbfdb9dd 100644 --- a/modules/workarounds/workarounds.lua +++ b/modules/workarounds/workarounds.lua @@ -4,7 +4,7 @@ if not policy then modules.load('policy') end local M = {} -- the module -function M.config() +function M.init() policy.add(policy.suffix(policy.FLAGS('NO_0X20'), { -- https://github.com/DNS-OARC/dns-violations/blob/master/2017/DVE-2017-0003.md todname('avqs.mcafee.com'), todname('avts.mcafee.com'),