Changeset

10784:0b0fe73199d2

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 26 Apr 2020 21:03:40 +0200
parents 10782:6b776f80b96e (current diff) 10783:950082c1669e (diff)
children 10785:e210afc9296a
files plugins/mod_tls.lua
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_tls.lua	Sun Apr 26 20:24:51 2020 +0200
+++ b/plugins/mod_tls.lua	Sun Apr 26 21:03:40 2020 +0200
@@ -37,7 +37,7 @@
 local ssl_cfg_c2s, ssl_cfg_s2sout, ssl_cfg_s2sin;
 local err_c2s, err_s2sin, err_s2sout;
 
-function module.load()
+function module.load(reload)
 	local NULL = {};
 	local modhost = module.host;
 	local parent = modhost:match("%.(.*)$");
@@ -68,6 +68,12 @@
 	-- 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
+
+	if reload then
+		module:log("info", "Certificates reloaded");
+	else
+		module:log("info", "Certificates loaded");
+	end
 end
 
 module:hook_global("config-reloaded", module.load);