Changeset

8715:25d8d6091ec3

util.startup: Access the hosts table via the prosody global for consistency
author Kim Alvefur <zash@zash.se>
date Thu, 29 Mar 2018 16:38:35 +0200
parents 8714:e1c4bdb2cd25
children 8716:2f3b08ad9b8a
files util/startup.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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