util.startup: Access the hosts table via the prosody global for consistency
authorKim Alvefur <zash@zash.se>
Thu, 29 Mar 2018 16:38:35 +0200
changeset 8718 25d8d6091ec3
parent 8717 e1c4bdb2cd25
child 8719 2f3b08ad9b8a
util.startup: Access the hosts table via the prosody global for consistency
util/startup.lua
--- a/util/startup.lua	Thu Apr 05 16:00:00 2018 +0200
+++ b/util/startup.lua	Thu Mar 29 16:38:35 2018 +0200
@@ -488,7 +488,7 @@
 	prosody.core_post_stanza = function () end; -- TODO: mod_router!
 
 	for hostname in pairs(config.getconfig()) do
-		hosts[hostname] = startup.make_host(hostname);
+		prosody.hosts[hostname] = startup.make_host(hostname);
 	end
 end