aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-02-25 02:03:26 +0000
committerMatthew Wild <mwild1@gmail.com>2012-02-25 02:03:26 +0000
commitba9e28535b28d3a9a2e8eca7b8a740a8ffad49c1 (patch)
treeae22907ae1064c6ae6291c280a5f8e6e8255944a /core/s2smanager.lua
parentbc79812f6cd7a7bca0ccaaaa5118e9aa561f4422 (diff)
downloadprosody-ba9e28535b28d3a9a2e8eca7b8a740a8ffad49c1.tar.gz
prosody-ba9e28535b28d3a9a2e8eca7b8a740a8ffad49c1.zip
s2smanager: Fix traceback when socket.tcp6 isn't available
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 822713fe..6c880a02 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -432,7 +432,7 @@ function make_connect(host_session, connect_host, connect_port)
local conn, handler;
if connect_host.proto == "IPv4" then
conn, handler = socket.tcp();
- else
+ elseif socket.tcp6 then
conn, handler = socket.tcp6();
end