Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
348:aab28eacd84e | 349:256f18e2bfd2 |
---|---|
115 local success, err = conn:connect(connect_host, connect_port); | 115 local success, err = conn:connect(connect_host, connect_port); |
116 if not success and err ~= "timeout" then | 116 if not success and err ~= "timeout" then |
117 log("warn", "s2s connect() failed: %s", err); | 117 log("warn", "s2s connect() failed: %s", err); |
118 end | 118 end |
119 | 119 |
120 conn = wraptlsclient(cl, conn, to_host, 5269, 0, 1, hosts[from_host].ssl_ctx ); | 120 conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, 1, hosts[from_host].ssl_ctx ); |
121 host_session.conn = conn; | 121 host_session.conn = conn; |
122 | 122 |
123 -- Register this outgoing connection so that xmppserver_listener knows about it | 123 -- Register this outgoing connection so that xmppserver_listener knows about it |
124 -- otherwise it will assume it is a new incoming connection | 124 -- otherwise it will assume it is a new incoming connection |
125 cl.register_outgoing(conn, host_session); | 125 cl.register_outgoing(conn, host_session); |