aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/s2s/s2sout.lib.lua
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2012-03-26 18:23:49 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2012-03-26 18:23:49 +0200
commit3028a7d45da8d282f77f0395e026f9b77f006f9b (patch)
tree98c919a9d27c9d1511038be26bf9fb7c1a726e7a /plugins/s2s/s2sout.lib.lua
parenta55ad8478e8c326dc48797f89b93a9f291fa2be9 (diff)
downloadprosody-3028a7d45da8d282f77f0395e026f9b77f006f9b.tar.gz
prosody-3028a7d45da8d282f77f0395e026f9b77f006f9b.zip
mod_s2s: Add "::" as a IPv6 interface (thanks darkrain)
Diffstat (limited to 'plugins/s2s/s2sout.lib.lua')
-rw-r--r--plugins/s2s/s2sout.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/s2s/s2sout.lib.lua b/plugins/s2s/s2sout.lib.lua
index 6ee1ca83..af55b273 100644
--- a/plugins/s2s/s2sout.lib.lua
+++ b/plugins/s2s/s2sout.lib.lua
@@ -331,7 +331,7 @@ module:hook_global("service-added", function (event)
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");