From 8e91da96f84888ec6d2840ce0e3b139139e4f6d5 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 8 Nov 2010 03:12:30 +0000 Subject: mod_tls: Pass the hostname rather than host session to certmanager.create_context() (thanks darkrain) --- plugins/mod_tls.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_tls.lua') diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index fa7b4688..a80f230e 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -91,8 +91,8 @@ end); function module.load() local ssl_config = module:get_option("ssl"); - host.ssl_ctx = create_context(host, "client", ssl_config); -- for outgoing connections - host.ssl_ctx_in = create_context(host, "server", ssl_config); -- for incoming connections + host.ssl_ctx = create_context(host.host, "client", ssl_config); -- for outgoing connections + host.ssl_ctx_in = create_context(host.host, "server", ssl_config); -- for incoming connections end function module.unload() -- cgit v1.2.3