Changeset

4510:b827401581c5

s2smanager: Fix traceback when socket.tcp6 isn't available
author Matthew Wild <mwild1@gmail.com>
date Sat, 25 Feb 2012 02:03:26 +0000
parents 4509:e886bd7c2f6c
children 4512:eb97612bf42b
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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