aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-05-05 16:25:33 +0200
committerKim Alvefur <zash@zash.se>2021-05-05 16:25:33 +0200
commit02cead40db8fc72d21eb88a3ea7f211ef124655f (patch)
tree165ca00f4d0463c24f8200264ff9f5d2ebeaecdd
parent4979dc730a3aca415a5ab34d5236aa2c28485b33 (diff)
downloadprosody-02cead40db8fc72d21eb88a3ea7f211ef124655f.tar.gz
prosody-02cead40db8fc72d21eb88a3ea7f211ef124655f.zip
mod_tls: Fix order of debug messages and tls context creation
Originally added in 5b048ccd106f Merged wrong in ca01c449357f
-rw-r--r--plugins/mod_tls.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index 83d4af3d..931701f5 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -56,15 +56,15 @@ function module.load(reload)
module:log("debug", "Creating context for c2s");
local request_client_certs = { verify = { "peer", "client_once", }; };
- module:log("debug", "Creating context for s2sout");
ssl_ctx_c2s, err_c2s, ssl_cfg_c2s = create_context(host.host, "server", host_c2s, host_ssl, global_c2s); -- for incoming client connections
if not ssl_ctx_c2s then module:log("error", "Error creating context for c2s: %s", err_c2s); end
- module:log("debug", "Creating context for s2sin");
+ module:log("debug", "Creating context for s2sout");
-- for outgoing server connections
ssl_ctx_s2sout, err_s2sout, ssl_cfg_s2sout = create_context(host.host, "client", host_s2s, host_ssl, global_s2s, request_client_certs);
if not ssl_ctx_s2sout then module:log("error", "Error creating contexts for s2sout: %s", err_s2sout); end
+ module:log("debug", "Creating context for s2sin");
-- for incoming server connections
ssl_ctx_s2sin, err_s2sin, ssl_cfg_s2sin = create_context(host.host, "server", host_s2s, host_ssl, global_s2s, request_client_certs);
if not ssl_ctx_s2sin then module:log("error", "Error creating contexts for s2sin: %s", err_s2sin); end