Diff

core/s2smanager.lua @ 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
parent 346:22c8f7d412a1
child 350:08f89c25e76e
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