]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daf: remove ordering requirement between http and daf modules
authorPetr Špaček <petr.spacek@nic.cz>
Tue, 31 Mar 2020 14:12:49 +0000 (16:12 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 2 Apr 2020 11:57:32 +0000 (13:57 +0200)
modules/daf/daf.lua

index 0a5a98df49c6a2bc27a0728b1f0af190f9fbd7bb..0ddb62b233dbd80c1281a3b369a6db87c614da06 100644 (file)
@@ -328,11 +328,16 @@ local function publish(_, ws)
        end
 end
 
+function M.init()
+       -- avoid ordering problem between HTTP and daf module
+       event.after(0, M.config)
+end
+
 -- @function Configure module
 function M.config()
        if not http then
                if verbose() then
-                       log('[daf ] HTTP API unavailable because HTTP module is not loaded, use modules.load("daf > http")')
+                       log('[daf ] HTTP API unavailable because HTTP module is not loaded, use modules.load("http")')
                end
                return
        end