mod_tls: Pass the hostname rather than host session to certmanager.create_context() (thanks darkrain)

Mon, 08 Nov 2010 03:12:30 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 08 Nov 2010 03:12:30 +0000
changeset 3574
1e088ec07d33
parent 3573
f31fa6520a4b
child 3575
bc3dfc00da5d

mod_tls: Pass the hostname rather than host session to certmanager.create_context() (thanks darkrain)

plugins/mod_tls.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_tls.lua	Sun Nov 07 20:38:01 2010 +0000
+++ b/plugins/mod_tls.lua	Mon Nov 08 03:12:30 2010 +0000
@@ -91,8 +91,8 @@
 
 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()

mercurial