aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-28 00:08:23 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-28 00:08:23 +0000
commit77c094c25a133609d7b30b748d62f4e9a78775b5 (patch)
tree765c4df72c8bcc1ff9c47912f56f91b83c423f8c /core/s2smanager.lua
parentefd0ef64bb4cbf51ecbd51280b4cf42d7f6e6ed8 (diff)
downloadprosody-77c094c25a133609d7b30b748d62f4e9a78775b5.tar.gz
prosody-77c094c25a133609d7b30b748d62f4e9a78775b5.zip
No more reading 1 byte at a time from sockets
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 1cd40aa8..80e68ccc 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -143,7 +143,7 @@ function attempt_connection(host_session, err)
end
local cl = connlisteners_get("xmppserver");
- conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, 1, hosts[from_host].ssl_ctx );
+ conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, cl.default_mode or 1, hosts[from_host].ssl_ctx );
host_session.conn = conn;
-- Register this outgoing connection so that xmppserver_listener knows about it