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 | d9b9c623c47e173d1194de5d35ab458b93445af6 (patch) | |
tree | ae22907ae1064c6ae6291c280a5f8e6e8255944a /core/s2smanager.lua | |
parent | 4ea02cb9d6eab6bbda4a2f8e826e2cdaecce571e (diff) | |
download | prosody-d9b9c623c47e173d1194de5d35ab458b93445af6.tar.gz prosody-d9b9c623c47e173d1194de5d35ab458b93445af6.zip |
s2smanager: Fix traceback when socket.tcp6 isn't available
Diffstat (limited to 'core/s2smanager.lua')
-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 |