# HG changeset patch # User Matthew Wild # Date 1330135406 0 # Node ID b827401581c545cb9fd911a4610aa7eb5739646c # Parent e886bd7c2f6c9fa65e96bc56ac4214f562ece913 s2smanager: Fix traceback when socket.tcp6 isn't available diff -r e886bd7c2f6c -r b827401581c5 core/s2smanager.lua --- a/core/s2smanager.lua Sun Feb 12 17:55:22 2012 +0000 +++ b/core/s2smanager.lua Sat Feb 25 02:03:26 2012 +0000 @@ -432,7 +432,7 @@ local conn, handler; if connect_host.proto == "IPv4" then conn, handler = socket.tcp(); - else + elseif socket.tcp6 then conn, handler = socket.tcp6(); end