Diff

plugins/mod_s2s/s2sout.lib.lua @ 4923:760a1f367f02

mod_s2s: Remove check for socket.tcp6()
author Kim Alvefur <zash@zash.se>
date Tue, 29 May 2012 18:04:29 +0200
parent 4922:d1fdc545f8b2
child 4957:1722a6bea115
line wrap: on
line diff
--- a/plugins/mod_s2s/s2sout.lib.lua	Tue May 29 18:02:48 2012 +0200
+++ b/plugins/mod_s2s/s2sout.lib.lua	Tue May 29 18:04:29 2012 +0200
@@ -282,10 +282,6 @@
 	if connect_host.proto == "IPv4" then
 		conn, handler = socket.tcp();
 	else
-		if not socket.tcp6 then
-			log("warn", "Could not connect to "..to_host..". Your version of lua-socket does not support IPv6");
-			return false, "no-ipv6";
-		end
 		conn, handler = socket.tcp6();
 	end