Diff

core/s2smanager.lua @ 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
parent 4494:694491140a67
child 4512:eb97612bf42b
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