core/hostmanager.lua

changeset 2628
04958fb28c44
parent 2618
b8f6aa70d019
child 2925
692b3c6c5bd2
--- a/core/hostmanager.lua	Sat Feb 13 15:34:33 2010 +0000
+++ b/core/hostmanager.lua	Sat Feb 13 16:08:43 2010 +0000
@@ -65,8 +65,8 @@
 		end
 	end
 	
-	hosts[host].ssl_ctx = certmanager.get_context(host, "client", host_config); -- for outgoing connections
-	hosts[host].ssl_ctx_in = certmanager.get_context(host, "server", host_config); -- for incoming connections
+	hosts[host].ssl_ctx = certmanager.create_context(host, "client", host_config); -- for outgoing connections
+	hosts[host].ssl_ctx_in = certmanager.create_context(host, "server", host_config); -- for incoming connections
 	
 	log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host);
 	eventmanager.fire_event("host-activated", host, host_config);

mercurial