Diff

plugins/s2s/s2sout.lib.lua @ 4629:bdafc3e729db

mod_s2s: Add "::" as a IPv6 interface (thanks darkrain)
author Florian Zeitz <florob@babelmonkeys.de>
date Mon, 26 Mar 2012 18:23:49 +0200
parent 4611:8572373fa26f
child 4756:f8ddaaa08a8e
line wrap: on
line diff
--- a/plugins/s2s/s2sout.lib.lua	Tue Mar 20 12:50:53 2012 +0100
+++ b/plugins/s2s/s2sout.lib.lua	Mon Mar 26 18:23:49 2012 +0200
@@ -331,7 +331,7 @@
 			end
 		elseif source == "::" then
 			if not socket.local_addresses then
-				sources[#sources + 1] = new_ip("::", "IPv4");
+				sources[#sources + 1] = new_ip("::", "IPv6");
 			else
 				for _, addr in ipairs(socket.local_addresses("ipv6", true)) do
 					sources[#sources + 1] = new_ip(addr, "IPv6");