diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-02-25 02:03:26 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-02-25 02:03:26 +0000 |
commit | ba9e28535b28d3a9a2e8eca7b8a740a8ffad49c1 (patch) | |
tree | ae22907ae1064c6ae6291c280a5f8e6e8255944a | |
parent | bc79812f6cd7a7bca0ccaaaa5118e9aa561f4422 (diff) | |
download | prosody-ba9e28535b28d3a9a2e8eca7b8a740a8ffad49c1.tar.gz prosody-ba9e28535b28d3a9a2e8eca7b8a740a8ffad49c1.zip |
s2smanager: Fix traceback when socket.tcp6 isn't available
-rw-r--r-- | core/s2smanager.lua | 2 |
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 |