aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/s2s
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
commiteb824294fe75a98771f3397c6a212d270e76550b (patch)
tree98c919a9d27c9d1511038be26bf9fb7c1a726e7a /plugins/s2s
parent326b9c2cc29490fec4e2f2719b98e8e6530014c9 (diff)
downloadprosody-eb824294fe75a98771f3397c6a212d270e76550b.tar.gz
prosody-eb824294fe75a98771f3397c6a212d270e76550b.zip
mod_s2s: Add "::" as a IPv6 interface (thanks darkrain)
Diffstat (limited to 'plugins/s2s')
-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");