Changeset

349:256f18e2bfd2

Fix for setting the correct host on the socket, seems to fix s2s with XCP
author Matthew Wild <mwild1@gmail.com>
date Wed, 19 Nov 2008 22:04:39 +0000
parents 348:aab28eacd84e
children 350:08f89c25e76e
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Wed Nov 19 22:03:39 2008 +0000
+++ b/core/s2smanager.lua	Wed Nov 19 22:04:39 2008 +0000
@@ -117,7 +117,7 @@
 			log("warn", "s2s connect() failed: %s", err);
 		end
 		
-		conn = wraptlsclient(cl, conn, to_host, 5269, 0, 1, hosts[from_host].ssl_ctx );
+		conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, 1, hosts[from_host].ssl_ctx );
 		host_session.conn = conn;
 		
 		-- Register this outgoing connection so that xmppserver_listener knows about it