mod_tls: Pass the hostname rather than host session to certmanager.create_context...
authorMatthew Wild <mwild1@gmail.com>
Mon, 8 Nov 2010 03:12:30 +0000 (03:12 +0000)
committerMatthew Wild <mwild1@gmail.com>
Mon, 8 Nov 2010 03:12:30 +0000 (03:12 +0000)
plugins/mod_tls.lua

index fa7b4688dc66876499f92783caba475c8a297fe8..a80f230e527ade1658b1c8074c0de4a4a464b903 100644 (file)
@@ -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()