From dd6a298f93413ec919c8f467438009b63e187b51 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 19 Nov 2008 22:04:39 +0000 Subject: Fix for setting the correct host on the socket, seems to fix s2s with XCP --- core/s2smanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 05c64519..2370e437 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -117,7 +117,7 @@ function new_outgoing(from_host, to_host) 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 -- cgit v1.2.3