Diff

plugins/mod_tls.lua @ 3574:1e088ec07d33

mod_tls: Pass the hostname rather than host session to certmanager.create_context() (thanks darkrain)
author Matthew Wild <mwild1@gmail.com>
date Mon, 08 Nov 2010 03:12:30 +0000
parent 3571:675d65036f31
child 3583:ef86ba720f00
line wrap: on
line diff
--- 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()