Fix for setting the correct host on the socket, seems to fix s2s with XCP

Wed, 19 Nov 2008 22:04:39 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 19 Nov 2008 22:04:39 +0000
changeset 349
256f18e2bfd2
parent 348
aab28eacd84e
child 350
08f89c25e76e

Fix for setting the correct host on the socket, seems to fix s2s with XCP

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- 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

mercurial