Changeset

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
parents 4628:087f4b437bd2
children 4630:9502c0224caf
files plugins/s2s/s2sout.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");