--- 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()