# HG changeset patch # User Matthew Wild # Date 1227132279 0 # Node ID 256f18e2bfd287e4ccbdded3a019f35c7d1740a4 # Parent aab28eacd84e697affa289ef0c54e91357993ca3 Fix for setting the correct host on the socket, seems to fix s2s with XCP diff -r aab28eacd84e -r 256f18e2bfd2 core/s2smanager.lua --- 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