aboutsummaryrefslogtreecommitdiffstats
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
commitd9b9c623c47e173d1194de5d35ab458b93445af6 (patch)
treeae22907ae1064c6ae6291c280a5f8e6e8255944a
parent4ea02cb9d6eab6bbda4a2f8e826e2cdaecce571e (diff)
downloadprosody-d9b9c623c47e173d1194de5d35ab458b93445af6.tar.gz
prosody-d9b9c623c47e173d1194de5d35ab458b93445af6.zip
s2smanager: Fix traceback when socket.tcp6 isn't available
-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