Changeset

12779:f0474d40364c 0.12

util.startup: Ensure import() is available in prosodyctl (thanks keyzer) Fixes error in mod_authz_internal due to import() being unavailable as it was only loaded in Prosody proper
author Kim Alvefur <zash@zash.se>
date Thu, 20 Oct 2022 16:31:18 +0200
parents 12760:ce1a0f9bf25a
children 12780:2c0c1b18a02b 12787:3735ad8d6f8e
files util/startup.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/startup.lua	Sun Oct 09 15:42:25 2022 +0200
+++ b/util/startup.lua	Thu Oct 20 16:31:18 2022 +0200
@@ -132,6 +132,7 @@
 function startup.load_libraries()
 	-- Load socket framework
 	-- luacheck: ignore 111/server 111/socket
+	require "util.import"
 	socket = require "socket";
 	server = require "net.server"
 end
@@ -359,7 +360,6 @@
 
 function startup.load_secondary_libraries()
 	--- Load and initialise core modules
-	require "util.import"
 	require "util.xmppstream"
 	require "core.stanza_router"
 	require "core.statsmanager"