Diff

core/s2smanager.lua @ 739:1def06cd9311

Port to new server.lua, quite some changes, but I believe everything to be working
author Matthew Wild <mwild1@gmail.com>
date Sat, 17 Jan 2009 04:45:08 +0000
parent 631:6957fe7b0313
child 758:b1885732e979
line wrap: on
line diff
--- a/core/s2smanager.lua	Fri Jan 16 23:34:45 2009 +0000
+++ b/core/s2smanager.lua	Sat Jan 17 04:45:08 2009 +0000
@@ -31,7 +31,7 @@
 
 local idna_to_ascii = require "util.encodings".idna.to_ascii;
 local connlisteners_get = require "net.connlisteners".get;
-local wraptlsclient = require "net.server".wraptlsclient;
+local wrapclient = require "net.server".wrapclient;
 local modulemanager = require "core.modulemanager";
 local st = require "stanza";
 local stanza = st.stanza;
@@ -196,7 +196,7 @@
 	end
 	
 	local cl = connlisteners_get("xmppserver");
-	conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, cl.default_mode or 1, hosts[from_host].ssl_ctx );
+	conn = wrapclient(conn, connect_host, connect_port, cl, cl.default_mode or 1, hosts[from_host].ssl_ctx, false );
 	host_session.conn = conn;
 	
 	-- Register this outgoing connection so that xmppserver_listener knows about it