From e91ebc0e7890c1fbac427452684e12d697ecadc7 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Fri, 6 Apr 2018 16:55:17 +0200
Subject: util.startup/prosodyctl: Delay enabling global protection until last
 (silences warning about CFG_PLUGINDIR)

---
 util/startup.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'util')

diff --git a/util/startup.lua b/util/startup.lua
index a7ed333a..11500496 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -516,9 +516,9 @@ function startup.prosodyctl()
 	startup.log_dependency_warnings();
 	startup.check_unwriteable();
 	startup.load_libraries();
-	startup.init_global_protection();
 	startup.init_http_client();
 	startup.make_dummy_hosts();
+	startup.init_global_protection();
 end
 
 function startup.prosody()
-- 
cgit v1.2.3