]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/workarounds: fix module initialisation.
authormenakite <29005531+menakite@users.noreply.github.com>
Fri, 16 Aug 2024 04:12:33 +0000 (06:12 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 6 Sep 2024 13:57:21 +0000 (15:57 +0200)
Rename config to init, which is called when a module is loaded.
It seems it's been broken for a while.

modules/workarounds/workarounds.lua

index 4ce7c47891e2103862991e1b27d0cabf553235aa..4cbfdb9ddce2baa53510bd3ed803da44a871ec14 100644 (file)
@@ -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'),